diff --git a/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java deleted file mode 100644 index ce8eb5ce..00000000 --- a/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1825 +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. - */ -package com.google.cloud.websecurityscanner.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Web Security Scanner Service identifies security vulnerabilities in web
- * applications hosted on Google Cloud. It crawls your application, and
- * attempts to exercise as many user inputs and event handlers as possible.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getCreateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = - getCreateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) - .build(); - } - } - } - return getCreateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, com.google.protobuf.Empty> - getDeleteScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, com.google.protobuf.Empty> - getDeleteScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getDeleteScanConfigMethod = - getDeleteScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) - .build(); - } - } - } - return getDeleteScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getGetScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getGetScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getGetScanConfigMethod; - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - WebSecurityScannerGrpc.getGetScanConfigMethod = - getGetScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) - .build(); - } - } - } - return getGetScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> - getListScanConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", - requestType = com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> - getListScanConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> - getListScanConfigsMethod; - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - WebSecurityScannerGrpc.getListScanConfigsMethod = - getListScanConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) - .build(); - } - } - } - return getListScanConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getUpdateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getUpdateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getUpdateScanConfigMethod; - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getUpdateScanConfigMethod = - getUpdateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) - .build(); - } - } - } - return getUpdateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStartScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartScanRun", - requestType = com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStartScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStartScanRunMethod; - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - WebSecurityScannerGrpc.getStartScanRunMethod = - getStartScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) - .build(); - } - } - } - return getStartScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getGetScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanRun", - requestType = com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getGetScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getGetScanRunMethod; - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - WebSecurityScannerGrpc.getGetScanRunMethod = - getGetScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) - .build(); - } - } - } - return getGetScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> - getListScanRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", - requestType = com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> - getListScanRunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> - getListScanRunsMethod; - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - WebSecurityScannerGrpc.getListScanRunsMethod = - getListScanRunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) - .build(); - } - } - } - return getListScanRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStopScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopScanRun", - requestType = com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStopScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStopScanRunMethod; - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - WebSecurityScannerGrpc.getStopScanRunMethod = - getStopScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) - .build(); - } - } - } - return getStopScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", - requestType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> - getListCrawledUrlsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - WebSecurityScannerGrpc.getListCrawledUrlsMethod = - getListCrawledUrlsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) - .build(); - } - } - } - return getListCrawledUrlsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding> - getGetFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFinding", - requestType = com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding> - getGetFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding> - getGetFindingMethod; - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - WebSecurityScannerGrpc.getGetFindingMethod = - getGetFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.GetFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) - .build(); - } - } - } - return getGetFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse> - getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse> - getListFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse> - getListFindingsMethod; - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - WebSecurityScannerGrpc.getListFindingsMethod = - getListFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", - requestType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - WebSecurityScannerGrpc.getListFindingTypeStatsMethod = - getListFindingTypeStatsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) - .build(); - } - } - } - return getListFindingTypeStatsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - }; - return WebSecurityScannerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WebSecurityScannerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - }; - return WebSecurityScannerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WebSecurityScannerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - }; - return WebSecurityScannerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanRunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCrawledUrlsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>(this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding>(this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - * - * - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerStub - extends io.grpc.stub.AbstractAsyncStub { - private WebSecurityScannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WebSecurityScannerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.Finding getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WebSecurityScannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanConfig> - createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanConfig> - getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> - listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanConfig> - updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanRun> - startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanRun> - getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> - listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanRun> - stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> - listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.Finding> - getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListFindingsResponse> - listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final WebSecurityScannerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCAN_CONFIG: - serviceImpl.createScanConfig( - (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SCAN_CONFIG: - serviceImpl.deleteScanConfig( - (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_CONFIG: - serviceImpl.getScanConfig( - (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_CONFIGS: - serviceImpl.listScanConfigs( - (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>) - responseObserver); - break; - case METHODID_UPDATE_SCAN_CONFIG: - serviceImpl.updateScanConfig( - (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_START_SCAN_RUN: - serviceImpl.startScanRun( - (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SCAN_RUN: - serviceImpl.getScanRun( - (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_RUNS: - serviceImpl.listScanRuns( - (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>) - responseObserver); - break; - case METHODID_STOP_SCAN_RUN: - serviceImpl.stopScanRun( - (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CRAWLED_URLS: - serviceImpl.listCrawledUrls( - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>) - responseObserver); - break; - case METHODID_GET_FINDING: - serviceImpl.getFinding( - (com.google.cloud.websecurityscanner.v1.GetFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings( - (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_FINDING_TYPE_STATS: - serviceImpl.listFindingTypeStats( - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WebSecurityScannerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WebSecurityScanner"); - } - } - - private static final class WebSecurityScannerFileDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier { - WebSecurityScannerFileDescriptorSupplier() {} - } - - private static final class WebSecurityScannerMethodDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WebSecurityScannerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (WebSecurityScannerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) - .addMethod(getCreateScanConfigMethod()) - .addMethod(getDeleteScanConfigMethod()) - .addMethod(getGetScanConfigMethod()) - .addMethod(getListScanConfigsMethod()) - .addMethod(getUpdateScanConfigMethod()) - .addMethod(getStartScanRunMethod()) - .addMethod(getGetScanRunMethod()) - .addMethod(getListScanRunsMethod()) - .addMethod(getStopScanRunMethod()) - .addMethod(getListCrawledUrlsMethod()) - .addMethod(getGetFindingMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListFindingTypeStatsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java deleted file mode 100644 index bd372ac9..00000000 --- a/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1848 +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. - */ -package com.google.cloud.websecurityscanner.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web
- * applications hosted on Google Cloud Platform. It crawls your application, and
- * attempts to exercise as many user inputs and event handlers as possible.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getCreateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = - getCreateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) - .build(); - } - } - } - return getCreateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getDeleteScanConfigMethod = - getDeleteScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) - .build(); - } - } - } - return getDeleteScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getGetScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getGetScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getGetScanConfigMethod; - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - WebSecurityScannerGrpc.getGetScanConfigMethod = - getGetScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) - .build(); - } - } - } - return getGetScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - getListScanConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - getListScanConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - getListScanConfigsMethod; - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - WebSecurityScannerGrpc.getListScanConfigsMethod = - getListScanConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) - .build(); - } - } - } - return getListScanConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getUpdateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getUpdateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getUpdateScanConfigMethod; - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getUpdateScanConfigMethod = - getUpdateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) - .build(); - } - } - } - return getUpdateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStartScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartScanRun", - requestType = com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStartScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStartScanRunMethod; - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - WebSecurityScannerGrpc.getStartScanRunMethod = - getStartScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) - .build(); - } - } - } - return getStartScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getGetScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanRun", - requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getGetScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getGetScanRunMethod; - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - WebSecurityScannerGrpc.getGetScanRunMethod = - getGetScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) - .build(); - } - } - } - return getGetScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - getListScanRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - getListScanRunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - getListScanRunsMethod; - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - WebSecurityScannerGrpc.getListScanRunsMethod = - getListScanRunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) - .build(); - } - } - } - return getListScanRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStopScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopScanRun", - requestType = com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStopScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStopScanRunMethod; - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - WebSecurityScannerGrpc.getStopScanRunMethod = - getStopScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) - .build(); - } - } - } - return getStopScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - getListCrawledUrlsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - WebSecurityScannerGrpc.getListCrawledUrlsMethod = - getListCrawledUrlsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) - .build(); - } - } - } - return getListCrawledUrlsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding> - getGetFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFinding", - requestType = com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding> - getGetFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding> - getGetFindingMethod; - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - WebSecurityScannerGrpc.getGetFindingMethod = - getGetFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.Finding - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) - .build(); - } - } - } - return getGetFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - getListFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - getListFindingsMethod; - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - WebSecurityScannerGrpc.getListFindingsMethod = - getListFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - WebSecurityScannerGrpc.getListFindingTypeStatsMethod = - getListFindingTypeStatsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha - .ListFindingTypeStatsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha - .ListFindingTypeStatsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) - .build(); - } - } - } - return getListFindingTypeStatsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - }; - return WebSecurityScannerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WebSecurityScannerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - }; - return WebSecurityScannerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WebSecurityScannerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - }; - return WebSecurityScannerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanRunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCrawledUrlsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding>( - this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerStub - extends io.grpc.stub.AbstractAsyncStub { - private WebSecurityScannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WebSecurityScannerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.Finding getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WebSecurityScannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.Finding> - getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final WebSecurityScannerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCAN_CONFIG: - serviceImpl.createScanConfig( - (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SCAN_CONFIG: - serviceImpl.deleteScanConfig( - (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_CONFIG: - serviceImpl.getScanConfig( - (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_CONFIGS: - serviceImpl.listScanConfigs( - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>) - responseObserver); - break; - case METHODID_UPDATE_SCAN_CONFIG: - serviceImpl.updateScanConfig( - (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_START_SCAN_RUN: - serviceImpl.startScanRun( - (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SCAN_RUN: - serviceImpl.getScanRun( - (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_RUNS: - serviceImpl.listScanRuns( - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>) - responseObserver); - break; - case METHODID_STOP_SCAN_RUN: - serviceImpl.stopScanRun( - (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CRAWLED_URLS: - serviceImpl.listCrawledUrls( - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>) - responseObserver); - break; - case METHODID_GET_FINDING: - serviceImpl.getFinding( - (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings( - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_FINDING_TYPE_STATS: - serviceImpl.listFindingTypeStats( - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WebSecurityScannerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WebSecurityScanner"); - } - } - - private static final class WebSecurityScannerFileDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier { - WebSecurityScannerFileDescriptorSupplier() {} - } - - private static final class WebSecurityScannerMethodDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WebSecurityScannerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (WebSecurityScannerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) - .addMethod(getCreateScanConfigMethod()) - .addMethod(getDeleteScanConfigMethod()) - .addMethod(getGetScanConfigMethod()) - .addMethod(getListScanConfigsMethod()) - .addMethod(getUpdateScanConfigMethod()) - .addMethod(getStartScanRunMethod()) - .addMethod(getGetScanRunMethod()) - .addMethod(getListScanRunsMethod()) - .addMethod(getStopScanRunMethod()) - .addMethod(getListCrawledUrlsMethod()) - .addMethod(getGetFindingMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListFindingTypeStatsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java deleted file mode 100644 index 2e13b836..00000000 --- a/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1842 +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. - */ -package com.google.cloud.websecurityscanner.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web
- * applications hosted on Google Cloud Platform. It crawls your application, and
- * attempts to exercise as many user inputs and event handlers as possible.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.websecurityscanner.v1beta.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getCreateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = - getCreateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) - .build(); - } - } - } - return getCreateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getDeleteScanConfigMethod = - getDeleteScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) - .build(); - } - } - } - return getDeleteScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getGetScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getGetScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getGetScanConfigMethod; - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - WebSecurityScannerGrpc.getGetScanConfigMethod = - getGetScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) - .build(); - } - } - } - return getGetScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - getListScanConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", - requestType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - getListScanConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - getListScanConfigsMethod; - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - WebSecurityScannerGrpc.getListScanConfigsMethod = - getListScanConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) - .build(); - } - } - } - return getListScanConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getUpdateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getUpdateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getUpdateScanConfigMethod; - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getUpdateScanConfigMethod = - getUpdateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) - .build(); - } - } - } - return getUpdateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStartScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartScanRun", - requestType = com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStartScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStartScanRunMethod; - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - WebSecurityScannerGrpc.getStartScanRunMethod = - getStartScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) - .build(); - } - } - } - return getStartScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getGetScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanRun", - requestType = com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getGetScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getGetScanRunMethod; - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - WebSecurityScannerGrpc.getGetScanRunMethod = - getGetScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) - .build(); - } - } - } - return getGetScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> - getListScanRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", - requestType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> - getListScanRunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> - getListScanRunsMethod; - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - WebSecurityScannerGrpc.getListScanRunsMethod = - getListScanRunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) - .build(); - } - } - } - return getListScanRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStopScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopScanRun", - requestType = com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStopScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStopScanRunMethod; - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - WebSecurityScannerGrpc.getStopScanRunMethod = - getStopScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) - .build(); - } - } - } - return getStopScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", - requestType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - getListCrawledUrlsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - WebSecurityScannerGrpc.getListCrawledUrlsMethod = - getListCrawledUrlsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) - .build(); - } - } - } - return getListCrawledUrlsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding> - getGetFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFinding", - requestType = com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding> - getGetFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding> - getGetFindingMethod; - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - WebSecurityScannerGrpc.getGetFindingMethod = - getGetFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.Finding - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) - .build(); - } - } - } - return getGetFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> - getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> - getListFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> - getListFindingsMethod; - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - WebSecurityScannerGrpc.getListFindingsMethod = - getListFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", - requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - WebSecurityScannerGrpc.getListFindingTypeStatsMethod = - getListFindingTypeStatsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta - .ListFindingTypeStatsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) - .build(); - } - } - } - return getListFindingTypeStatsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - }; - return WebSecurityScannerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WebSecurityScannerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - }; - return WebSecurityScannerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WebSecurityScannerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - }; - return WebSecurityScannerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanRunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCrawledUrlsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding>( - this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerStub - extends io.grpc.stub.AbstractAsyncStub { - private WebSecurityScannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WebSecurityScannerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.Finding getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WebSecurityScannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanRun> - startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> - listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanRun> - stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.Finding> - getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> - listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final WebSecurityScannerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCAN_CONFIG: - serviceImpl.createScanConfig( - (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SCAN_CONFIG: - serviceImpl.deleteScanConfig( - (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_CONFIG: - serviceImpl.getScanConfig( - (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_CONFIGS: - serviceImpl.listScanConfigs( - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>) - responseObserver); - break; - case METHODID_UPDATE_SCAN_CONFIG: - serviceImpl.updateScanConfig( - (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_START_SCAN_RUN: - serviceImpl.startScanRun( - (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SCAN_RUN: - serviceImpl.getScanRun( - (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_RUNS: - serviceImpl.listScanRuns( - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>) - responseObserver); - break; - case METHODID_STOP_SCAN_RUN: - serviceImpl.stopScanRun( - (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CRAWLED_URLS: - serviceImpl.listCrawledUrls( - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>) - responseObserver); - break; - case METHODID_GET_FINDING: - serviceImpl.getFinding( - (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings( - (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_FINDING_TYPE_STATS: - serviceImpl.listFindingTypeStats( - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WebSecurityScannerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WebSecurityScanner"); - } - } - - private static final class WebSecurityScannerFileDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier { - WebSecurityScannerFileDescriptorSupplier() {} - } - - private static final class WebSecurityScannerMethodDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WebSecurityScannerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (WebSecurityScannerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) - .addMethod(getCreateScanConfigMethod()) - .addMethod(getDeleteScanConfigMethod()) - .addMethod(getGetScanConfigMethod()) - .addMethod(getListScanConfigsMethod()) - .addMethod(getUpdateScanConfigMethod()) - .addMethod(getStartScanRunMethod()) - .addMethod(getGetScanRunMethod()) - .addMethod(getListScanRunsMethod()) - .addMethod(getStopScanRunMethod()) - .addMethod(getListCrawledUrlsMethod()) - .addMethod(getGetFindingMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListFindingTypeStatsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java similarity index 75% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java index d05e5287..902aa9aa 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java +++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java @@ -43,8 +43,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   CreateScanConfigRequest request =
  *       CreateScanConfigRequest.newBuilder()
@@ -85,8 +88,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,8 +104,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WebSecurityScannerClient webSecurityScannerClient =
@@ -110,8 +119,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -180,8 +192,11 @@ public WebSecurityScannerStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -206,8 +221,11 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -232,8 +250,11 @@ public final UnaryCallable createScanConfig
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder().setName("name3373707").build();
@@ -255,8 +276,11 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder().setName("name3373707").build();
@@ -278,8 +302,11 @@ public final UnaryCallable deleteScanConfigCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder().setName("name3373707").build();
@@ -301,8 +328,11 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder().setName("name3373707").build();
@@ -324,8 +354,11 @@ public final UnaryCallable getScanConfigCallab
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -353,8 +386,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -383,8 +419,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -420,8 +459,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -446,8 +488,11 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -472,8 +517,11 @@ public final UnaryCallable updateScanConfig
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build();
    *   ScanRun response = webSecurityScannerClient.startScanRun(request);
@@ -494,8 +542,11 @@ public final ScanRun startScanRun(StartScanRunRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future =
@@ -516,8 +567,11 @@ public final UnaryCallable startScanRunCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build();
    *   ScanRun response = webSecurityScannerClient.getScanRun(request);
@@ -538,8 +592,11 @@ public final ScanRun getScanRun(GetScanRunRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future = webSecurityScannerClient.getScanRunCallable().futureCall(request);
@@ -559,8 +616,11 @@ public final UnaryCallable getScanRunCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -588,8 +648,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -618,8 +681,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -654,8 +720,11 @@ public final UnaryCallable listScanRu
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build();
    *   ScanRun response = webSecurityScannerClient.stopScanRun(request);
@@ -676,8 +745,11 @@ public final ScanRun stopScanRun(StopScanRunRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future =
@@ -698,8 +770,11 @@ public final UnaryCallable stopScanRunCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -727,8 +802,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -757,8 +835,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -794,8 +875,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build();
    *   Finding response = webSecurityScannerClient.getFinding(request);
@@ -816,8 +900,11 @@ public final Finding getFinding(GetFindingRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future = webSecurityScannerClient.getFindingCallable().futureCall(request);
@@ -837,8 +924,11 @@ public final UnaryCallable getFindingCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -867,8 +957,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -898,8 +991,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -935,8 +1031,11 @@ public final UnaryCallable listFindin
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build();
@@ -960,8 +1059,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build();
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
similarity index 97%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
index 838d6101..fdb88c21 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
+++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
@@ -31,6 +31,7 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.cloud.websecurityscanner.v1.stub.WebSecurityScannerStubSettings;
@@ -58,8 +59,11 @@
  * 

For example, to set the total timeout of createScanConfig to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
similarity index 80%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
index d6a90363..3b7c55f7 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
+++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
@@ -28,8 +28,11 @@
  * 

Sample for WebSecurityScannerClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   CreateScanConfigRequest request =
  *       CreateScanConfigRequest.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java
similarity index 99%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java
index 06ac8e88..708f4c8c 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java
+++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java
@@ -54,6 +54,7 @@
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
 import java.io.IOException;
+import java.util.Map;
 import java.util.concurrent.TimeUnit;
 import javax.annotation.Generated;
 
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
similarity index 99%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
index 448c4ade..a8cfd73b 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
+++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
@@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -388,7 +388,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
similarity index 98%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
index 863dfae8..5ee7c49a 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
+++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
@@ -97,8 +97,11 @@
  * 

For example, to set the total timeout of createScanConfig to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerStubSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
similarity index 99%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
index 88fea022..d678fbff 100644
--- a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
+++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
@@ -95,6 +95,7 @@ public void createScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -201,6 +202,7 @@ public void getScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -319,6 +321,7 @@ public void updateScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -335,6 +338,7 @@ public void updateScanConfigTest() throws Exception {
                     .setSchedule(ScanConfig.Schedule.newBuilder().build())
                     .setManagedScan(true)
                     .setStaticIpScan(true)
+                    .setIgnoreHttpStatusErrors(true)
                     .build())
             .setUpdateMask(FieldMask.newBuilder().build())
             .build();
@@ -378,6 +382,7 @@ public void updateScanConfigExceptionTest() throws Exception {
                       .setSchedule(ScanConfig.Schedule.newBuilder().build())
                       .setManagedScan(true)
                       .setStaticIpScan(true)
+                      .setIgnoreHttpStatusErrors(true)
                       .build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
@@ -702,6 +707,7 @@ public void getFindingTest() throws Exception {
             .setVulnerableHeaders(VulnerableHeaders.newBuilder().build())
             .setVulnerableParameters(VulnerableParameters.newBuilder().build())
             .setXss(Xss.newBuilder().build())
+            .setXxe(Xxe.newBuilder().build())
             .build();
     mockService.addResponse(expectedResponse);
 
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
similarity index 99%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
index e70a9522..c97774ef 100644
--- a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
+++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
@@ -98,6 +98,7 @@ public void createScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockWebSecurityScanner.addResponse(expectedResponse);
 
@@ -189,6 +190,7 @@ public void getScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockWebSecurityScanner.addResponse(expectedResponse);
 
@@ -292,6 +294,7 @@ public void updateScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockWebSecurityScanner.addResponse(expectedResponse);
 
@@ -604,6 +607,7 @@ public void getFindingTest() throws Exception {
             .setVulnerableHeaders(VulnerableHeaders.newBuilder().build())
             .setVulnerableParameters(VulnerableParameters.newBuilder().build())
             .setXss(Xss.newBuilder().build())
+            .setXxe(Xxe.newBuilder().build())
             .build();
     mockWebSecurityScanner.addResponse(expectedResponse);
 
diff --git a/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java
new file mode 100644
index 00000000..90f5d7df
--- /dev/null
+++ b/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java
@@ -0,0 +1,1349 @@
+package com.google.cloud.websecurityscanner.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ * 
+ * Web Security Scanner Service identifies security vulnerabilities in web
+ * applications hosted on Google Cloud. It crawls your application, and
+ * attempts to exercise as many user inputs and event handlers as possible.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { + io.grpc.MethodDescriptor getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanConfigMethod() { + io.grpc.MethodDescriptor getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanConfigsMethod() { + io.grpc.MethodDescriptor getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartScanRunMethod() { + io.grpc.MethodDescriptor getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) + .build(); + } + } + } + return getStartScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanRun", + requestType = com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanRunMethod() { + io.grpc.MethodDescriptor getGetScanRunMethod; + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + WebSecurityScannerGrpc.getGetScanRunMethod = getGetScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) + .build(); + } + } + } + return getGetScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", + requestType = com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanRunsMethod() { + io.grpc.MethodDescriptor getListScanRunsMethod; + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + WebSecurityScannerGrpc.getListScanRunsMethod = getListScanRunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) + .build(); + } + } + } + return getListScanRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopScanRun", + requestType = com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopScanRunMethod() { + io.grpc.MethodDescriptor getStopScanRunMethod; + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + WebSecurityScannerGrpc.getStopScanRunMethod = getStopScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) + .build(); + } + } + } + return getStopScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCrawledUrlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", + requestType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCrawledUrlsMethod() { + io.grpc.MethodDescriptor getListCrawledUrlsMethod; + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + WebSecurityScannerGrpc.getListCrawledUrlsMethod = getListCrawledUrlsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) + .build(); + } + } + } + return getListCrawledUrlsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFindingMethod() { + io.grpc.MethodDescriptor getGetFindingMethod; + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + WebSecurityScannerGrpc.getGetFindingMethod = getGetFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingsMethod() { + io.grpc.MethodDescriptor getListFindingsMethod; + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + WebSecurityScannerGrpc.getListFindingsMethod = getListFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", + requestType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingTypeStatsMethod() { + io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + WebSecurityScannerGrpc.getListFindingTypeStatsMethod = getListFindingTypeStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) + .build(); + } + } + } + return getListFindingTypeStatsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + }; + return WebSecurityScannerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WebSecurityScannerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + }; + return WebSecurityScannerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WebSecurityScannerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + }; + return WebSecurityScannerFutureStub.newStub(factory, channel); + } + + /** + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static abstract class WebSecurityScannerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanConfigMethod(), responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanConfigsMethod(), responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanRunsMethod(), responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopScanRunMethod(), responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig>( + this, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SCAN_CONFIG))) + .addMethod( + getGetScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig>( + this, METHODID_GET_SCAN_CONFIG))) + .addMethod( + getListScanConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>( + this, METHODID_LIST_SCAN_CONFIGS))) + .addMethod( + getUpdateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig>( + this, METHODID_UPDATE_SCAN_CONFIG))) + .addMethod( + getStartScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun>( + this, METHODID_START_SCAN_RUN))) + .addMethod( + getGetScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun>( + this, METHODID_GET_SCAN_RUN))) + .addMethod( + getListScanRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>( + this, METHODID_LIST_SCAN_RUNS))) + .addMethod( + getStopScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun>( + this, METHODID_STOP_SCAN_RUN))) + .addMethod( + getListCrawledUrlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>( + this, METHODID_LIST_CRAWLED_URLS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.GetFindingRequest, + com.google.cloud.websecurityscanner.v1.Finding>( + this, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( + this, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + } + + /** + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerStub extends io.grpc.stub.AbstractAsyncStub { + private WebSecurityScannerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private WebSecurityScannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanConfig createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.protobuf.Empty deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanConfig updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanRun startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanRun getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanRunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanRun stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.Finding getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListFindingsResponse listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerFutureStub extends io.grpc.stub.AbstractFutureStub { + private WebSecurityScannerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createScanConfig( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteScanConfig( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanConfig( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanConfigs( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateScanConfig( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startScanRun( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanRun( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanRuns( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopScanRun( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCrawledUrls( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFinding( + com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindings( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindingTypeStats( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCAN_CONFIG = 0; + private static final int METHODID_DELETE_SCAN_CONFIG = 1; + private static final int METHODID_GET_SCAN_CONFIG = 2; + private static final int METHODID_LIST_SCAN_CONFIGS = 3; + private static final int METHODID_UPDATE_SCAN_CONFIG = 4; + private static final int METHODID_START_SCAN_RUN = 5; + private static final int METHODID_GET_SCAN_RUN = 6; + private static final int METHODID_LIST_SCAN_RUNS = 7; + private static final int METHODID_STOP_SCAN_RUN = 8; + private static final int METHODID_LIST_CRAWLED_URLS = 9; + private static final int METHODID_GET_FINDING = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WebSecurityScannerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCAN_CONFIG: + serviceImpl.createScanConfig((com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCAN_CONFIG: + serviceImpl.deleteScanConfig((com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_CONFIG: + serviceImpl.getScanConfig((com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_CONFIGS: + serviceImpl.listScanConfigs((com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCAN_CONFIG: + serviceImpl.updateScanConfig((com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_SCAN_RUN: + serviceImpl.startScanRun((com.google.cloud.websecurityscanner.v1.StartScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_RUN: + serviceImpl.getScanRun((com.google.cloud.websecurityscanner.v1.GetScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_RUNS: + serviceImpl.listScanRuns((com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_SCAN_RUN: + serviceImpl.stopScanRun((com.google.cloud.websecurityscanner.v1.StopScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CRAWLED_URLS: + serviceImpl.listCrawledUrls((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding((com.google.cloud.websecurityscanner.v1.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings((com.google.cloud.websecurityscanner.v1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDING_TYPE_STATS: + serviceImpl.listFindingTypeStats((com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WebSecurityScannerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WebSecurityScanner"); + } + } + + private static final class WebSecurityScannerFileDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier { + WebSecurityScannerFileDescriptorSupplier() {} + } + + private static final class WebSecurityScannerMethodDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WebSecurityScannerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WebSecurityScannerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) + .addMethod(getCreateScanConfigMethod()) + .addMethod(getDeleteScanConfigMethod()) + .addMethod(getGetScanConfigMethod()) + .addMethod(getListScanConfigsMethod()) + .addMethod(getUpdateScanConfigMethod()) + .addMethod(getStartScanRunMethod()) + .addMethod(getGetScanRunMethod()) + .addMethod(getListScanRunsMethod()) + .addMethod(getStopScanRunMethod()) + .addMethod(getListCrawledUrlsMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListFindingTypeStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java index 366a26a4..905cbc09 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1/crawled_url.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
  * Security Scanner Service crawls the web applications, following all links
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.CrawledUrl}
  */
-public final class CrawledUrl extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CrawledUrl extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.CrawledUrl)
     CrawledUrlOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CrawledUrl.newBuilder() to construct.
   private CrawledUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CrawledUrl() {
     httpMethod_ = "";
     url_ = "";
@@ -47,15 +29,16 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CrawledUrl(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,34 +57,31 @@ private CrawledUrl(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              url_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            url_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            body_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,40 +89,35 @@ private CrawledUrl(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.CrawledUrl.class,
-            com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
+            com.google.cloud.websecurityscanner.v1.CrawledUrl.class, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
   }
 
   public static final int HTTP_METHOD_FIELD_NUMBER = 1;
   private volatile java.lang.Object httpMethod_;
   /**
-   *
-   *
    * 
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ @java.lang.Override @@ -151,30 +126,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -185,14 +160,11 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ @java.lang.Override @@ -201,29 +173,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -234,14 +206,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int BODY_FIELD_NUMBER = 3; private volatile java.lang.Object body_; /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ @java.lang.Override @@ -250,29 +219,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -281,7 +250,6 @@ public com.google.protobuf.ByteString getBodyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpMethod_); } @@ -329,17 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.CrawledUrl)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.CrawledUrl other = - (com.google.cloud.websecurityscanner.v1.CrawledUrl) obj; + com.google.cloud.websecurityscanner.v1.CrawledUrl other = (com.google.cloud.websecurityscanner.v1.CrawledUrl) obj; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getUrl().equals(other.getUrl())) return false; - if (!getBody().equals(other.getBody())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,103 +334,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.CrawledUrl prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
    * Security Scanner Service crawls the web applications, following all links
@@ -468,23 +432,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.CrawledUrl}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.CrawledUrl)
       com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.CrawledUrl.class,
-              com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
+              com.google.cloud.websecurityscanner.v1.CrawledUrl.class, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.CrawledUrl.newBuilder()
@@ -492,15 +454,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -514,9 +477,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
@@ -535,8 +498,7 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.CrawledUrl buildPartial() {
-      com.google.cloud.websecurityscanner.v1.CrawledUrl result =
-          new com.google.cloud.websecurityscanner.v1.CrawledUrl(this);
+      com.google.cloud.websecurityscanner.v1.CrawledUrl result = new com.google.cloud.websecurityscanner.v1.CrawledUrl(this);
       result.httpMethod_ = httpMethod_;
       result.url_ = url_;
       result.body_ = body_;
@@ -548,39 +510,38 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.CrawledUrl) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.CrawledUrl) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.CrawledUrl)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -588,8 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.CrawledUrl other) {
-      if (other == com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()) return this;
       if (!other.getHttpMethod().isEmpty()) {
         httpMethod_ = other.httpMethod_;
         onChanged();
@@ -621,8 +581,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.CrawledUrl) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -634,21 +593,19 @@ public Builder mergeFrom(
 
     private java.lang.Object httpMethod_ = "";
     /**
-     *
-     *
      * 
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -657,22 +614,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -680,64 +636,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -745,20 +694,18 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object url_ = ""; /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -767,21 +714,20 @@ public java.lang.String getUrl() { } } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -789,61 +735,54 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -851,20 +790,18 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -873,21 +810,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -895,68 +831,61 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -966,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.CrawledUrl) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.CrawledUrl) private static final com.google.cloud.websecurityscanner.v1.CrawledUrl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.CrawledUrl(); } @@ -980,16 +909,16 @@ public static com.google.cloud.websecurityscanner.v1.CrawledUrl getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawledUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawledUrl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CrawledUrl(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1004,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java index b72ebfe7..1ded75ef 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java @@ -1,102 +1,71 @@ -/* - * 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/cloud/websecurityscanner/v1/crawled_url.proto package com.google.cloud.websecurityscanner.v1; -public interface CrawledUrlOrBuilder - extends +public interface CrawledUrlOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.CrawledUrl) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java new file mode 100644 index 00000000..d47d640b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/crawled_url.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class CrawledUrlProto { + private CrawledUrlProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/websecurityscanner/v1/cra" + + "wled_url.proto\022\"google.cloud.websecurity" + + "scanner.v1\"<\n\nCrawledUrl\022\023\n\013http_method\030" + + "\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\tB\203\002\n&com" + + ".google.cloud.websecurityscanner.v1B\017Cra" + + "wledUrlProtoP\001ZTgoogle.golang.org/genpro" + + "to/googleapis/cloud/websecurityscanner/v" + + "1;websecurityscanner\252\002\"Google.Cloud.WebS" + + "ecurityScanner.V1\312\002\"Google\\Cloud\\WebSecu" + + "rityScanner\\V1\352\002%Google::Cloud::WebSecur" + + "ityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor, + new java.lang.String[] { "HttpMethod", "Url", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java index ee5a13c4..423a5f40 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `CreateScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.CreateScanConfigRequest} */ -public final class CreateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) CreateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateScanConfigRequest.newBuilder() to construct. private CreateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateScanConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private CreateScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,40 +86,35 @@ private CreateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -150,30 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -199,25 +169,18 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
@@ -230,7 +193,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -262,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -272,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -308,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `CreateScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.CreateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) com.google.cloud.websecurityscanner.v1.CreateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.newBuilder() @@ -436,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -460,14 +416,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance(); } @@ -482,8 +437,7 @@ public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(this); result.parent_ = parent_; if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; @@ -498,39 +452,38 @@ public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -538,9 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -567,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -581,21 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -604,22 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -627,64 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -692,47 +631,34 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -753,8 +679,6 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig v return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -773,8 +697,6 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -785,9 +707,7 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -799,8 +719,6 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -819,8 +737,6 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -828,13 +744,11 @@ public Builder clearScanConfig() { * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -845,14 +759,11 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -860,24 +771,21 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java index 65bbadbe..ea34e72e 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java @@ -1,82 +1,53 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface CreateScanConfigRequestOrBuilder - extends +public interface CreateScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig(); /** - * - * *
    * Required. The ScanConfig to be created.
    * 
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java index 8e4e92cc..5e0ac59b 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `DeleteScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} */ -public final class DeleteScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) DeleteScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteScanConfigRequest.newBuilder() to construct. private DeleteScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private DeleteScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance(); } @@ -397,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +374,38 @@ public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -448,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,22 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -534,71 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java index 06f88c17..ddf41703 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface DeleteScanConfigRequestOrBuilder - extends +public interface DeleteScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java index 958b1bc5..489772dd 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1/finding.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A Finding resource represents a vulnerability instance identified during a
  * ScanRun.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.Finding}
  */
-public final class Finding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Finding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Finding)
     FindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Finding() {
     name_ = "";
     findingType_ = "";
@@ -54,15 +36,16 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -81,190 +64,170 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              findingType_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            findingType_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fuzzedUrl_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            fuzzedUrl_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            body_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              reproductionUrl_ = s;
-              break;
-            }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            reproductionUrl_ = s;
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            frameUrl_ = s;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              frameUrl_ = s;
-              break;
+            finalUrl_ = s;
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            trackingId_ = s;
+            break;
+          }
+          case 90: {
+            com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder subBuilder = null;
+            if (outdatedLibrary_ != null) {
+              subBuilder = outdatedLibrary_.toBuilder();
+            }
+            outdatedLibrary_ = input.readMessage(com.google.cloud.websecurityscanner.v1.OutdatedLibrary.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outdatedLibrary_);
+              outdatedLibrary_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              finalUrl_ = s;
-              break;
+            break;
+          }
+          case 98: {
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder subBuilder = null;
+            if (violatingResource_ != null) {
+              subBuilder = violatingResource_.toBuilder();
+            }
+            violatingResource_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ViolatingResource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(violatingResource_);
+              violatingResource_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              trackingId_ = s;
-              break;
+            break;
+          }
+          case 106: {
+            com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder subBuilder = null;
+            if (vulnerableParameters_ != null) {
+              subBuilder = vulnerableParameters_.toBuilder();
+            }
+            vulnerableParameters_ = input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableParameters.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableParameters_);
+              vulnerableParameters_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder subBuilder = null;
-              if (outdatedLibrary_ != null) {
-                subBuilder = outdatedLibrary_.toBuilder();
-              }
-              outdatedLibrary_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.OutdatedLibrary.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outdatedLibrary_);
-                outdatedLibrary_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 114: {
+            com.google.cloud.websecurityscanner.v1.Xss.Builder subBuilder = null;
+            if (xss_ != null) {
+              subBuilder = xss_.toBuilder();
             }
-          case 98:
-            {
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder subBuilder = null;
-              if (violatingResource_ != null) {
-                subBuilder = violatingResource_.toBuilder();
-              }
-              violatingResource_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ViolatingResource.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(violatingResource_);
-                violatingResource_ = subBuilder.buildPartial();
-              }
-
-              break;
+            xss_ = input.readMessage(com.google.cloud.websecurityscanner.v1.Xss.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(xss_);
+              xss_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder subBuilder = null;
-              if (vulnerableParameters_ != null) {
-                subBuilder = vulnerableParameters_.toBuilder();
-              }
-              vulnerableParameters_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.VulnerableParameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableParameters_);
-                vulnerableParameters_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 122: {
+            com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder subBuilder = null;
+            if (vulnerableHeaders_ != null) {
+              subBuilder = vulnerableHeaders_.toBuilder();
             }
-          case 114:
-            {
-              com.google.cloud.websecurityscanner.v1.Xss.Builder subBuilder = null;
-              if (xss_ != null) {
-                subBuilder = xss_.toBuilder();
-              }
-              xss_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.Xss.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(xss_);
-                xss_ = subBuilder.buildPartial();
-              }
-
-              break;
+            vulnerableHeaders_ = input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableHeaders_);
+              vulnerableHeaders_ = subBuilder.buildPartial();
             }
-          case 122:
-            {
-              com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder subBuilder = null;
-              if (vulnerableHeaders_ != null) {
-                subBuilder = vulnerableHeaders_.toBuilder();
-              }
-              vulnerableHeaders_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.VulnerableHeaders.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableHeaders_);
-                vulnerableHeaders_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 130: {
+            com.google.cloud.websecurityscanner.v1.Form.Builder subBuilder = null;
+            if (form_ != null) {
+              subBuilder = form_.toBuilder();
             }
-          case 130:
-            {
-              com.google.cloud.websecurityscanner.v1.Form.Builder subBuilder = null;
-              if (form_ != null) {
-                subBuilder = form_.toBuilder();
-              }
-              form_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.Form.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(form_);
-                form_ = subBuilder.buildPartial();
-              }
-
-              break;
+            form_ = input.readMessage(com.google.cloud.websecurityscanner.v1.Form.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(form_);
+              form_ = subBuilder.buildPartial();
             }
-          case 136:
-            {
-              int rawValue = input.readEnum();
 
-              severity_ = rawValue;
-              break;
+            break;
+          }
+          case 136: {
+            int rawValue = input.readEnum();
+
+            severity_ = rawValue;
+            break;
+          }
+          case 146: {
+            com.google.cloud.websecurityscanner.v1.Xxe.Builder subBuilder = null;
+            if (xxe_ != null) {
+              subBuilder = xxe_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            xxe_ = input.readMessage(com.google.cloud.websecurityscanner.v1.Xxe.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(xxe_);
+              xxe_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -272,41 +235,36 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.Finding.class,
-            com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
+            com.google.cloud.websecurityscanner.v1.Finding.class, com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The severity level of a vulnerability.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.Finding.Severity} */ - public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No severity specified. The default value.
      * 
@@ -315,8 +273,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
      * Critical severity.
      * 
@@ -325,8 +281,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ CRITICAL(1), /** - * - * *
      * High severity.
      * 
@@ -335,8 +289,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ HIGH(2), /** - * - * *
      * Medium severity.
      * 
@@ -345,8 +297,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ MEDIUM(3), /** - * - * *
      * Low severity.
      * 
@@ -358,8 +308,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * No severity specified. The default value.
      * 
@@ -368,8 +316,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Critical severity.
      * 
@@ -378,8 +324,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CRITICAL_VALUE = 1; /** - * - * *
      * High severity.
      * 
@@ -388,8 +332,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HIGH_VALUE = 2; /** - * - * *
      * Medium severity.
      * 
@@ -398,8 +340,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEDIUM_VALUE = 3; /** - * - * *
      * Low severity.
      * 
@@ -408,6 +348,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOW_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -432,53 +373,51 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: - return SEVERITY_UNSPECIFIED; - case 1: - return CRITICAL; - case 2: - return HIGH; - case 3: - return MEDIUM; - case 4: - return LOW; - default: - return null; + case 0: return SEVERITY_UNSPECIFIED; + case 1: return CRITICAL; + case 2: return HIGH; + case 3: return MEDIUM; + case 4: return LOW; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Severity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.websecurityscanner.v1.Finding.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); - public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -498,8 +437,6 @@ private Severity(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -507,7 +444,6 @@ private Severity(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -516,15 +452,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -532,15 +467,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -551,8 +487,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object findingType_; /** - * - * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -560,7 +494,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string finding_type = 2; - * * @return The findingType. */ @java.lang.Override @@ -569,15 +502,14 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** - * - * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -585,15 +517,16 @@ public java.lang.String getFindingType() {
    * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -604,57 +537,39 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int SEVERITY_FIELD_NUMBER = 17; private int severity_; /** - * - * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The severity. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Finding.Severity result = - com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.Finding.Severity result = com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); + return result == null ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; private volatile java.lang.Object httpMethod_; /** - * - * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ @java.lang.Override @@ -663,30 +578,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -697,15 +612,12 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int FUZZED_URL_FIELD_NUMBER = 4; private volatile java.lang.Object fuzzedUrl_; /** - * - * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ @java.lang.Override @@ -714,30 +626,30 @@ public java.lang.String getFuzzedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; } } /** - * - * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -748,14 +660,11 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { public static final int BODY_FIELD_NUMBER = 5; private volatile java.lang.Object body_; /** - * - * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ @java.lang.Override @@ -764,29 +673,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -797,14 +706,11 @@ public com.google.protobuf.ByteString getBodyBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ @java.lang.Override @@ -813,29 +719,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -846,15 +752,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; private volatile java.lang.Object reproductionUrl_; /** - * - * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ @java.lang.Override @@ -863,30 +766,30 @@ public java.lang.String getReproductionUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; } } /** - * - * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -897,15 +800,12 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { public static final int FRAME_URL_FIELD_NUMBER = 8; private volatile java.lang.Object frameUrl_; /** - * - * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ @java.lang.Override @@ -914,30 +814,30 @@ public java.lang.String getFrameUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; } } /** - * - * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -948,14 +848,11 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { public static final int FINAL_URL_FIELD_NUMBER = 9; private volatile java.lang.Object finalUrl_; /** - * - * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ @java.lang.Override @@ -964,29 +861,29 @@ public java.lang.String getFinalUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } } /** - * - * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -997,15 +894,12 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { public static final int TRACKING_ID_FIELD_NUMBER = 10; private volatile java.lang.Object trackingId_; /** - * - * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ @java.lang.Override @@ -1014,30 +908,30 @@ public java.lang.String getTrackingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; } } /** - * - * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ @java.lang.Override - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -1048,15 +942,12 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { public static final int FORM_FIELD_NUMBER = 16; private com.google.cloud.websecurityscanner.v1.Form form_; /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return Whether the form field is set. */ @java.lang.Override @@ -1064,15 +955,12 @@ public boolean hasForm() { return form_ != null; } /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return The form. */ @java.lang.Override @@ -1080,8 +968,6 @@ public com.google.cloud.websecurityscanner.v1.Form getForm() { return form_ == null ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() : form_; } /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -1097,14 +983,11 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
   public static final int OUTDATED_LIBRARY_FIELD_NUMBER = 11;
   private com.google.cloud.websecurityscanner.v1.OutdatedLibrary outdatedLibrary_;
   /**
-   *
-   *
    * 
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ @java.lang.Override @@ -1112,25 +995,18 @@ public boolean hasOutdatedLibrary() { return outdatedLibrary_ != null; } /** - * - * *
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary() { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } /** - * - * *
    * Output only. An addon containing information about outdated libraries.
    * 
@@ -1138,23 +1014,19 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { return getOutdatedLibrary(); } public static final int VIOLATING_RESOURCE_FIELD_NUMBER = 12; private com.google.cloud.websecurityscanner.v1.ViolatingResource violatingResource_; /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ @java.lang.Override @@ -1162,26 +1034,19 @@ public boolean hasViolatingResource() { return violatingResource_ != null; } /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingResource() { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_; } /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -1190,22 +1055,18 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingReso
    * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder
-      getViolatingResourceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
     return getViolatingResource();
   }
 
   public static final int VULNERABLE_HEADERS_FIELD_NUMBER = 15;
   private com.google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerableHeaders_;
   /**
-   *
-   *
    * 
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ @java.lang.Override @@ -1213,25 +1074,18 @@ public boolean hasVulnerableHeaders() { return vulnerableHeaders_ != null; } /** - * - * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHeaders() { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } /** - * - * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
@@ -1239,24 +1093,19 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHea * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { return getVulnerableHeaders(); } public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER = 13; private com.google.cloud.websecurityscanner.v1.VulnerableParameters vulnerableParameters_; /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ @java.lang.Override @@ -1264,52 +1113,39 @@ public boolean hasVulnerableParameters() { return vulnerableParameters_ != null; } /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableParameters getVulnerableParameters() { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { return getVulnerableParameters(); } public static final int XSS_FIELD_NUMBER = 14; private com.google.cloud.websecurityscanner.v1.Xss xss_; /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return Whether the xss field is set. */ @java.lang.Override @@ -1317,14 +1153,11 @@ public boolean hasXss() { return xss_ != null; } /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return The xss. */ @java.lang.Override @@ -1332,8 +1165,6 @@ public com.google.cloud.websecurityscanner.v1.Xss getXss() { return xss_ == null ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() : xss_; } /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
@@ -1345,8 +1176,45 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { return getXss(); } - private byte memoizedIsInitialized = -1; + public static final int XXE_FIELD_NUMBER = 18; + private com.google.cloud.websecurityscanner.v1.Xxe xxe_; + /** + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the xxe field is set. + */ + @java.lang.Override + public boolean hasXxe() { + return xxe_ != null; + } + /** + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The xxe. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { + return xxe_ == null ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; + } + /** + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { + return getXxe(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1358,7 +1226,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1407,11 +1276,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (form_ != null) { output.writeMessage(16, getForm()); } - if (severity_ - != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { + if (severity_ != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(17, severity_); } + if (xxe_ != null) { + output.writeMessage(18, getXxe()); + } unknownFields.writeTo(output); } @@ -1452,28 +1322,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trackingId_); } if (outdatedLibrary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOutdatedLibrary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getOutdatedLibrary()); } if (violatingResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getViolatingResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getViolatingResource()); } if (vulnerableParameters_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVulnerableParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getVulnerableParameters()); } if (xss_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getXss()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getXss()); } if (vulnerableHeaders_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getVulnerableHeaders()); } if (form_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getForm()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getForm()); } - if (severity_ - != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, severity_); + if (severity_ != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, severity_); + } + if (xxe_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getXxe()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1483,48 +1361,68 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Finding)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Finding other = - (com.google.cloud.websecurityscanner.v1.Finding) obj; + com.google.cloud.websecurityscanner.v1.Finding other = (com.google.cloud.websecurityscanner.v1.Finding) obj; - if (!getName().equals(other.getName())) return false; - if (!getFindingType().equals(other.getFindingType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFindingType() + .equals(other.getFindingType())) return false; if (severity_ != other.severity_) return false; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getFuzzedUrl().equals(other.getFuzzedUrl())) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getReproductionUrl().equals(other.getReproductionUrl())) return false; - if (!getFrameUrl().equals(other.getFrameUrl())) return false; - if (!getFinalUrl().equals(other.getFinalUrl())) return false; - if (!getTrackingId().equals(other.getTrackingId())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getFuzzedUrl() + .equals(other.getFuzzedUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getReproductionUrl() + .equals(other.getReproductionUrl())) return false; + if (!getFrameUrl() + .equals(other.getFrameUrl())) return false; + if (!getFinalUrl() + .equals(other.getFinalUrl())) return false; + if (!getTrackingId() + .equals(other.getTrackingId())) return false; if (hasForm() != other.hasForm()) return false; if (hasForm()) { - if (!getForm().equals(other.getForm())) return false; + if (!getForm() + .equals(other.getForm())) return false; } if (hasOutdatedLibrary() != other.hasOutdatedLibrary()) return false; if (hasOutdatedLibrary()) { - if (!getOutdatedLibrary().equals(other.getOutdatedLibrary())) return false; + if (!getOutdatedLibrary() + .equals(other.getOutdatedLibrary())) return false; } if (hasViolatingResource() != other.hasViolatingResource()) return false; if (hasViolatingResource()) { - if (!getViolatingResource().equals(other.getViolatingResource())) return false; + if (!getViolatingResource() + .equals(other.getViolatingResource())) return false; } if (hasVulnerableHeaders() != other.hasVulnerableHeaders()) return false; if (hasVulnerableHeaders()) { - if (!getVulnerableHeaders().equals(other.getVulnerableHeaders())) return false; + if (!getVulnerableHeaders() + .equals(other.getVulnerableHeaders())) return false; } if (hasVulnerableParameters() != other.hasVulnerableParameters()) return false; if (hasVulnerableParameters()) { - if (!getVulnerableParameters().equals(other.getVulnerableParameters())) return false; + if (!getVulnerableParameters() + .equals(other.getVulnerableParameters())) return false; } if (hasXss() != other.hasXss()) return false; if (hasXss()) { - if (!getXss().equals(other.getXss())) return false; + if (!getXss() + .equals(other.getXss())) return false; + } + if (hasXxe() != other.hasXxe()) return false; + if (hasXxe()) { + if (!getXxe() + .equals(other.getXxe())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1583,109 +1481,106 @@ public int hashCode() { hash = (37 * hash) + XSS_FIELD_NUMBER; hash = (53 * hash) + getXss().hashCode(); } + if (hasXxe()) { + hash = (37 * hash) + XXE_FIELD_NUMBER; + hash = (53 * hash) + getXxe().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.Finding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.Finding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Finding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Finding resource represents a vulnerability instance identified during a
    * ScanRun.
@@ -1693,23 +1588,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.Finding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Finding)
       com.google.cloud.websecurityscanner.v1.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.Finding.class,
-              com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
+              com.google.cloud.websecurityscanner.v1.Finding.class, com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.Finding.newBuilder()
@@ -1717,15 +1610,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1787,13 +1681,19 @@ public Builder clear() {
         xss_ = null;
         xssBuilder_ = null;
       }
+      if (xxeBuilder_ == null) {
+        xxe_ = null;
+      } else {
+        xxe_ = null;
+        xxeBuilder_ = null;
+      }
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1812,8 +1712,7 @@ public com.google.cloud.websecurityscanner.v1.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.Finding buildPartial() {
-      com.google.cloud.websecurityscanner.v1.Finding result =
-          new com.google.cloud.websecurityscanner.v1.Finding(this);
+      com.google.cloud.websecurityscanner.v1.Finding result = new com.google.cloud.websecurityscanner.v1.Finding(this);
       result.name_ = name_;
       result.findingType_ = findingType_;
       result.severity_ = severity_;
@@ -1855,6 +1754,11 @@ public com.google.cloud.websecurityscanner.v1.Finding buildPartial() {
       } else {
         result.xss_ = xssBuilder_.build();
       }
+      if (xxeBuilder_ == null) {
+        result.xxe_ = xxe_;
+      } else {
+        result.xxe_ = xxeBuilder_.build();
+      }
       onBuilt();
       return result;
     }
@@ -1863,39 +1767,38 @@ public com.google.cloud.websecurityscanner.v1.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.Finding) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.Finding) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.Finding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1965,6 +1868,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.Finding other) {
       if (other.hasXss()) {
         mergeXss(other.getXss());
       }
+      if (other.hasXxe()) {
+        mergeXxe(other.getXxe());
+      }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -1996,8 +1902,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2005,13 +1909,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2020,8 +1924,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2029,14 +1931,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2044,8 +1947,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2053,22 +1954,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2076,18 +1975,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2095,16 +1991,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2112,8 +2008,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object findingType_ = ""; /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2121,13 +2015,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string finding_type = 2; - * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -2136,8 +2030,6 @@ public java.lang.String getFindingType() { } } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2145,14 +2037,15 @@ public java.lang.String getFindingType() {
      * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -2160,8 +2053,6 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2169,22 +2060,20 @@ public com.google.protobuf.ByteString getFindingTypeBytes() {
      * 
* * string finding_type = 2; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(java.lang.String value) { + public Builder setFindingType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2192,18 +2081,15 @@ public Builder setFindingType(java.lang.String value) {
      * 
* * string finding_type = 2; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2211,16 +2097,16 @@ public Builder clearFindingType() {
      * 
* * string finding_type = 2; - * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; @@ -2228,75 +2114,51 @@ public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { private int severity_ = 0; /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The severity. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Finding.Severity result = - com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.Finding.Severity result = com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); + return result == null ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The severity to set. * @return This builder for chaining. */ @@ -2304,26 +2166,21 @@ public Builder setSeverity(com.google.cloud.websecurityscanner.v1.Finding.Severi if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -2331,21 +2188,19 @@ public Builder clearSeverity() { private java.lang.Object httpMethod_ = ""; /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -2354,22 +2209,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -2377,64 +2231,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -2442,21 +2289,19 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object fuzzedUrl_ = ""; /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ public java.lang.String getFuzzedUrl() { java.lang.Object ref = fuzzedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; @@ -2465,22 +2310,21 @@ public java.lang.String getFuzzedUrl() { } } /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -2488,64 +2332,57 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { } } /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrl(java.lang.String value) { + public Builder setFuzzedUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fuzzedUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return This builder for chaining. */ public Builder clearFuzzedUrl() { - + fuzzedUrl_ = getDefaultInstance().getFuzzedUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The bytes for fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFuzzedUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fuzzedUrl_ = value; onChanged(); return this; @@ -2553,20 +2390,18 @@ public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -2575,21 +2410,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -2597,61 +2431,54 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; @@ -2659,20 +2486,18 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2681,21 +2506,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2703,61 +2527,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2765,21 +2582,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object reproductionUrl_ = ""; /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ public java.lang.String getReproductionUrl() { java.lang.Object ref = reproductionUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; @@ -2788,22 +2603,21 @@ public java.lang.String getReproductionUrl() { } } /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -2811,64 +2625,57 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { } } /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrl(java.lang.String value) { + public Builder setReproductionUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reproductionUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return This builder for chaining. */ public Builder clearReproductionUrl() { - + reproductionUrl_ = getDefaultInstance().getReproductionUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The bytes for reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { + public Builder setReproductionUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reproductionUrl_ = value; onChanged(); return this; @@ -2876,21 +2683,19 @@ public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object frameUrl_ = ""; /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The frameUrl. */ public java.lang.String getFrameUrl() { java.lang.Object ref = frameUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; @@ -2899,22 +2704,21 @@ public java.lang.String getFrameUrl() { } } /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -2922,64 +2726,57 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { } } /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrl(java.lang.String value) { + public Builder setFrameUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + frameUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return This builder for chaining. */ public Builder clearFrameUrl() { - + frameUrl_ = getDefaultInstance().getFrameUrl(); onChanged(); return this; } /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The bytes for frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFrameUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameUrl_ = value; onChanged(); return this; @@ -2987,20 +2784,18 @@ public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object finalUrl_ = ""; /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; @@ -3009,21 +2804,20 @@ public java.lang.String getFinalUrl() { } } /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -3031,61 +2825,54 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { } } /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrl(java.lang.String value) { + public Builder setFinalUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + finalUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return This builder for chaining. */ public Builder clearFinalUrl() { - + finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFinalUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finalUrl_ = value; onChanged(); return this; @@ -3093,21 +2880,19 @@ public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object trackingId_ = ""; /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The trackingId. */ public java.lang.String getTrackingId() { java.lang.Object ref = trackingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; @@ -3116,22 +2901,21 @@ public java.lang.String getTrackingId() { } } /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -3139,64 +2923,57 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { } } /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingId(java.lang.String value) { + public Builder setTrackingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return This builder for chaining. */ public Builder clearTrackingId() { - + trackingId_ = getDefaultInstance().getTrackingId(); onChanged(); return this; } /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The bytes for trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { + public Builder setTrackingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingId_ = value; onChanged(); return this; @@ -3204,49 +2981,36 @@ public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1.Form form_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Form, - com.google.cloud.websecurityscanner.v1.Form.Builder, - com.google.cloud.websecurityscanner.v1.FormOrBuilder> - formBuilder_; + com.google.cloud.websecurityscanner.v1.Form, com.google.cloud.websecurityscanner.v1.Form.Builder, com.google.cloud.websecurityscanner.v1.FormOrBuilder> formBuilder_; /** - * - * *
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return Whether the form field is set. */ public boolean hasForm() { return formBuilder_ != null || form_ != null; } /** - * - * *
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return The form. */ public com.google.cloud.websecurityscanner.v1.Form getForm() { if (formBuilder_ == null) { - return form_ == null - ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() - : form_; + return form_ == null ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() : form_; } else { return formBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3268,8 +3032,6 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1.Form value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3277,7 +3039,8 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1.Form value) {
      *
      * .google.cloud.websecurityscanner.v1.Form form = 16;
      */
-    public Builder setForm(com.google.cloud.websecurityscanner.v1.Form.Builder builderForValue) {
+    public Builder setForm(
+        com.google.cloud.websecurityscanner.v1.Form.Builder builderForValue) {
       if (formBuilder_ == null) {
         form_ = builderForValue.build();
         onChanged();
@@ -3288,8 +3051,6 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1.Form.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3301,9 +3062,7 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1.Form value) {
       if (formBuilder_ == null) {
         if (form_ != null) {
           form_ =
-              com.google.cloud.websecurityscanner.v1.Form.newBuilder(form_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.Form.newBuilder(form_).mergeFrom(value).buildPartial();
         } else {
           form_ = value;
         }
@@ -3315,8 +3074,6 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1.Form value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3336,8 +3093,6 @@ public Builder clearForm() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3346,13 +3101,11 @@ public Builder clearForm() {
      * .google.cloud.websecurityscanner.v1.Form form = 16;
      */
     public com.google.cloud.websecurityscanner.v1.Form.Builder getFormBuilder() {
-
+      
       onChanged();
       return getFormFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3364,14 +3117,11 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
       if (formBuilder_ != null) {
         return formBuilder_.getMessageOrBuilder();
       } else {
-        return form_ == null
-            ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance()
-            : form_;
+        return form_ == null ?
+            com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() : form_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3380,17 +3130,14 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
      * .google.cloud.websecurityscanner.v1.Form form = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.Form,
-            com.google.cloud.websecurityscanner.v1.Form.Builder,
-            com.google.cloud.websecurityscanner.v1.FormOrBuilder>
+        com.google.cloud.websecurityscanner.v1.Form, com.google.cloud.websecurityscanner.v1.Form.Builder, com.google.cloud.websecurityscanner.v1.FormOrBuilder> 
         getFormFieldBuilder() {
       if (formBuilder_ == null) {
-        formBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.Form,
-                com.google.cloud.websecurityscanner.v1.Form.Builder,
-                com.google.cloud.websecurityscanner.v1.FormOrBuilder>(
-                getForm(), getParentForChildren(), isClean());
+        formBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.Form, com.google.cloud.websecurityscanner.v1.Form.Builder, com.google.cloud.websecurityscanner.v1.FormOrBuilder>(
+                getForm(),
+                getParentForChildren(),
+                isClean());
         form_ = null;
       }
       return formBuilder_;
@@ -3398,55 +3145,41 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
 
     private com.google.cloud.websecurityscanner.v1.OutdatedLibrary outdatedLibrary_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.OutdatedLibrary,
-            com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder,
-            com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder>
-        outdatedLibraryBuilder_;
+        com.google.cloud.websecurityscanner.v1.OutdatedLibrary, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder> outdatedLibraryBuilder_;
     /**
-     *
-     *
      * 
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ public boolean hasOutdatedLibrary() { return outdatedLibraryBuilder_ != null || outdatedLibrary_ != null; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary() { if (outdatedLibraryBuilder_ == null) { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } else { return outdatedLibraryBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public Builder setOutdatedLibrary( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { + public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3460,8 +3193,6 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3480,22 +3211,17 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public Builder mergeOutdatedLibrary( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { + public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (outdatedLibrary_ != null) { outdatedLibrary_ = - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder(outdatedLibrary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder(outdatedLibrary_).mergeFrom(value).buildPartial(); } else { outdatedLibrary_ = value; } @@ -3507,8 +3233,6 @@ public Builder mergeOutdatedLibrary( return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3527,42 +3251,33 @@ public Builder clearOutdatedLibrary() { return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder - getOutdatedLibraryBuilder() { - + public com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder getOutdatedLibraryBuilder() { + onChanged(); return getOutdatedLibraryFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { if (outdatedLibraryBuilder_ != null) { return outdatedLibraryBuilder_.getMessageOrBuilder(); } else { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3570,17 +3285,14 @@ public Builder clearOutdatedLibrary() { * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder> + com.google.cloud.websecurityscanner.v1.OutdatedLibrary, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder> getOutdatedLibraryFieldBuilder() { if (outdatedLibraryBuilder_ == null) { - outdatedLibraryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder>( - getOutdatedLibrary(), getParentForChildren(), isClean()); + outdatedLibraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.OutdatedLibrary, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder>( + getOutdatedLibrary(), + getParentForChildren(), + isClean()); outdatedLibrary_ = null; } return outdatedLibraryBuilder_; @@ -3588,49 +3300,36 @@ public Builder clearOutdatedLibrary() { private com.google.cloud.websecurityscanner.v1.ViolatingResource violatingResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ViolatingResource, - com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder> - violatingResourceBuilder_; + com.google.cloud.websecurityscanner.v1.ViolatingResource, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder> violatingResourceBuilder_; /** - * - * *
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ public boolean hasViolatingResource() { return violatingResourceBuilder_ != null || violatingResource_ != null; } /** - * - * *
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingResource() { if (violatingResourceBuilder_ == null) { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_; } else { return violatingResourceBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3638,8 +3337,7 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingReso
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public Builder setViolatingResource(
-        com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
+    public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
       if (violatingResourceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3653,8 +3351,6 @@ public Builder setViolatingResource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3674,8 +3370,6 @@ public Builder setViolatingResource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3683,15 +3377,11 @@ public Builder setViolatingResource(
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public Builder mergeViolatingResource(
-        com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
+    public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
       if (violatingResourceBuilder_ == null) {
         if (violatingResource_ != null) {
           violatingResource_ =
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder(
-                      violatingResource_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder(violatingResource_).mergeFrom(value).buildPartial();
         } else {
           violatingResource_ = value;
         }
@@ -3703,8 +3393,6 @@ public Builder mergeViolatingResource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3724,8 +3412,6 @@ public Builder clearViolatingResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3733,15 +3419,12 @@ public Builder clearViolatingResource() {
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder
-        getViolatingResourceBuilder() {
-
+    public com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder getViolatingResourceBuilder() {
+      
       onChanged();
       return getViolatingResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3749,19 +3432,15 @@ public Builder clearViolatingResource() {
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder
-        getViolatingResourceOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
       if (violatingResourceBuilder_ != null) {
         return violatingResourceBuilder_.getMessageOrBuilder();
       } else {
-        return violatingResource_ == null
-            ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()
-            : violatingResource_;
+        return violatingResource_ == null ?
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3770,17 +3449,14 @@ public Builder clearViolatingResource() {
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ViolatingResource,
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder,
-            com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder>
+        com.google.cloud.websecurityscanner.v1.ViolatingResource, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder> 
         getViolatingResourceFieldBuilder() {
       if (violatingResourceBuilder_ == null) {
-        violatingResourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.ViolatingResource,
-                com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder,
-                com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder>(
-                getViolatingResource(), getParentForChildren(), isClean());
+        violatingResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.ViolatingResource, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder>(
+                getViolatingResource(),
+                getParentForChildren(),
+                isClean());
         violatingResource_ = null;
       }
       return violatingResourceBuilder_;
@@ -3788,55 +3464,41 @@ public Builder clearViolatingResource() {
 
     private com.google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerableHeaders_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.VulnerableHeaders,
-            com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder,
-            com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder>
-        vulnerableHeadersBuilder_;
+        com.google.cloud.websecurityscanner.v1.VulnerableHeaders, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder> vulnerableHeadersBuilder_;
     /**
-     *
-     *
      * 
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ public boolean hasVulnerableHeaders() { return vulnerableHeadersBuilder_ != null || vulnerableHeaders_ != null; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } else { return vulnerableHeadersBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public Builder setVulnerableHeaders( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { + public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3850,8 +3512,6 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3870,23 +3530,17 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public Builder mergeVulnerableHeaders( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { + public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (vulnerableHeaders_ != null) { vulnerableHeaders_ = - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder( - vulnerableHeaders_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder(vulnerableHeaders_).mergeFrom(value).buildPartial(); } else { vulnerableHeaders_ = value; } @@ -3898,8 +3552,6 @@ public Builder mergeVulnerableHeaders( return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3918,42 +3570,33 @@ public Builder clearVulnerableHeaders() { return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder - getVulnerableHeadersBuilder() { - + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder getVulnerableHeadersBuilder() { + onChanged(); return getVulnerableHeadersFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { if (vulnerableHeadersBuilder_ != null) { return vulnerableHeadersBuilder_.getMessageOrBuilder(); } else { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3961,17 +3604,14 @@ public Builder clearVulnerableHeaders() { * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableHeaders, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder> getVulnerableHeadersFieldBuilder() { if (vulnerableHeadersBuilder_ == null) { - vulnerableHeadersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder>( - getVulnerableHeaders(), getParentForChildren(), isClean()); + vulnerableHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder>( + getVulnerableHeaders(), + getParentForChildren(), + isClean()); vulnerableHeaders_ = null; } return vulnerableHeadersBuilder_; @@ -3979,61 +3619,44 @@ public Builder clearVulnerableHeaders() { private com.google.cloud.websecurityscanner.v1.VulnerableParameters vulnerableParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableParameters, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> - vulnerableParametersBuilder_; + com.google.cloud.websecurityscanner.v1.VulnerableParameters, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> vulnerableParametersBuilder_; /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ public boolean hasVulnerableParameters() { return vulnerableParametersBuilder_ != null || vulnerableParameters_ != null; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ public com.google.cloud.websecurityscanner.v1.VulnerableParameters getVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } else { return vulnerableParametersBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - public Builder setVulnerableParameters( - com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { + public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4047,15 +3670,12 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ public Builder setVulnerableParameters( com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder builderForValue) { @@ -4069,25 +3689,18 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - public Builder mergeVulnerableParameters( - com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { + public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (vulnerableParameters_ != null) { vulnerableParameters_ = - com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder( - vulnerableParameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder(vulnerableParameters_).mergeFrom(value).buildPartial(); } else { vulnerableParameters_ = value; } @@ -4099,15 +3712,12 @@ public Builder mergeVulnerableParameters( return this; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ public Builder clearVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { @@ -4121,66 +3731,51 @@ public Builder clearVulnerableParameters() { return this; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder - getVulnerableParametersBuilder() { - + public com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder getVulnerableParametersBuilder() { + onChanged(); return getVulnerableParametersFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { if (vulnerableParametersBuilder_ != null) { return vulnerableParametersBuilder_.getMessageOrBuilder(); } else { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? + com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableParameters, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableParameters, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> getVulnerableParametersFieldBuilder() { if (vulnerableParametersBuilder_ == null) { - vulnerableParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableParameters, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder>( - getVulnerableParameters(), getParentForChildren(), isClean()); + vulnerableParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableParameters, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder>( + getVulnerableParameters(), + getParentForChildren(), + isClean()); vulnerableParameters_ = null; } return vulnerableParametersBuilder_; @@ -4188,47 +3783,34 @@ public Builder clearVulnerableParameters() { private com.google.cloud.websecurityscanner.v1.Xss xss_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xss, - com.google.cloud.websecurityscanner.v1.Xss.Builder, - com.google.cloud.websecurityscanner.v1.XssOrBuilder> - xssBuilder_; + com.google.cloud.websecurityscanner.v1.Xss, com.google.cloud.websecurityscanner.v1.Xss.Builder, com.google.cloud.websecurityscanner.v1.XssOrBuilder> xssBuilder_; /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return Whether the xss field is set. */ public boolean hasXss() { return xssBuilder_ != null || xss_ != null; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return The xss. */ public com.google.cloud.websecurityscanner.v1.Xss getXss() { if (xssBuilder_ == null) { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() : xss_; } else { return xssBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4249,15 +3831,14 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1.Xss value) { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ - public Builder setXss(com.google.cloud.websecurityscanner.v1.Xss.Builder builderForValue) { + public Builder setXss( + com.google.cloud.websecurityscanner.v1.Xss.Builder builderForValue) { if (xssBuilder_ == null) { xss_ = builderForValue.build(); onChanged(); @@ -4268,8 +3849,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1.Xss.Builder builder return this; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4280,9 +3859,7 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1.Xss value) { if (xssBuilder_ == null) { if (xss_ != null) { xss_ = - com.google.cloud.websecurityscanner.v1.Xss.newBuilder(xss_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.Xss.newBuilder(xss_).mergeFrom(value).buildPartial(); } else { xss_ = value; } @@ -4294,8 +3871,6 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1.Xss value) { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4314,8 +3889,6 @@ public Builder clearXss() { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4323,13 +3896,11 @@ public Builder clearXss() { * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ public com.google.cloud.websecurityscanner.v1.Xss.Builder getXssBuilder() { - + onChanged(); return getXssFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4340,14 +3911,11 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { if (xssBuilder_ != null) { return xssBuilder_.getMessageOrBuilder(); } else { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? + com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() : xss_; } } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4355,24 +3923,176 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xss, - com.google.cloud.websecurityscanner.v1.Xss.Builder, - com.google.cloud.websecurityscanner.v1.XssOrBuilder> + com.google.cloud.websecurityscanner.v1.Xss, com.google.cloud.websecurityscanner.v1.Xss.Builder, com.google.cloud.websecurityscanner.v1.XssOrBuilder> getXssFieldBuilder() { if (xssBuilder_ == null) { - xssBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xss, - com.google.cloud.websecurityscanner.v1.Xss.Builder, - com.google.cloud.websecurityscanner.v1.XssOrBuilder>( - getXss(), getParentForChildren(), isClean()); + xssBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xss, com.google.cloud.websecurityscanner.v1.Xss.Builder, com.google.cloud.websecurityscanner.v1.XssOrBuilder>( + getXss(), + getParentForChildren(), + isClean()); xss_ = null; } return xssBuilder_; } + private com.google.cloud.websecurityscanner.v1.Xxe xxe_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, com.google.cloud.websecurityscanner.v1.Xxe.Builder, com.google.cloud.websecurityscanner.v1.XxeOrBuilder> xxeBuilder_; + /** + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the xxe field is set. + */ + public boolean hasXxe() { + return xxeBuilder_ != null || xxe_ != null; + } + /** + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The xxe. + */ + public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { + if (xxeBuilder_ == null) { + return xxe_ == null ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; + } else { + return xxeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { + if (xxeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + xxe_ = value; + onChanged(); + } else { + xxeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setXxe( + com.google.cloud.websecurityscanner.v1.Xxe.Builder builderForValue) { + if (xxeBuilder_ == null) { + xxe_ = builderForValue.build(); + onChanged(); + } else { + xxeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { + if (xxeBuilder_ == null) { + if (xxe_ != null) { + xxe_ = + com.google.cloud.websecurityscanner.v1.Xxe.newBuilder(xxe_).mergeFrom(value).buildPartial(); + } else { + xxe_ = value; + } + onChanged(); + } else { + xxeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearXxe() { + if (xxeBuilder_ == null) { + xxe_ = null; + onChanged(); + } else { + xxe_ = null; + xxeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.websecurityscanner.v1.Xxe.Builder getXxeBuilder() { + + onChanged(); + return getXxeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { + if (xxeBuilder_ != null) { + return xxeBuilder_.getMessageOrBuilder(); + } else { + return xxe_ == null ? + com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; + } + } + /** + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, com.google.cloud.websecurityscanner.v1.Xxe.Builder, com.google.cloud.websecurityscanner.v1.XxeOrBuilder> + getXxeFieldBuilder() { + if (xxeBuilder_ == null) { + xxeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, com.google.cloud.websecurityscanner.v1.Xxe.Builder, com.google.cloud.websecurityscanner.v1.XxeOrBuilder>( + getXxe(), + getParentForChildren(), + isClean()); + xxe_ = null; + } + return xxeBuilder_; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4382,12 +4102,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Finding) private static final com.google.cloud.websecurityscanner.v1.Finding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Finding(); } @@ -4396,16 +4116,16 @@ public static com.google.cloud.websecurityscanner.v1.Finding getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4420,4 +4140,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java new file mode 100644 index 00000000..0439db0f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class FindingAddonProto { + private FindingAddonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/websecurityscanner/v1/fin" + + "ding_addon.proto\022\"google.cloud.websecuri" + + "tyscanner.v1\"*\n\004Form\022\022\n\naction_uri\030\001 \001(\t" + + "\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibrary\022\024\n\014l" + + "ibrary_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\027\n\017le" + + "arn_more_urls\030\003 \003(\t\"?\n\021ViolatingResource" + + "\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource_url\030\002" + + " \001(\t\"/\n\024VulnerableParameters\022\027\n\017paramete" + + "r_names\030\001 \003(\t\"\340\001\n\021VulnerableHeaders\022M\n\007h" + + "eaders\030\001 \003(\0132<.google.cloud.websecuritys" + + "canner.v1.VulnerableHeaders.Header\022U\n\017mi" + + "ssing_headers\030\002 \003(\0132<.google.cloud.webse" + + "curityscanner.v1.VulnerableHeaders.Heade" + + "r\032%\n\006Header\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + "\"\333\003\n\003Xss\022\024\n\014stack_traces\030\001 \003(\t\022\025\n\rerror_" + + "message\030\002 \001(\t\022K\n\rattack_vector\030\003 \001(\01624.g" + + "oogle.cloud.websecurityscanner.v1.Xss.At" + + "tackVector\022\036\n\026stored_xss_seeding_url\030\004 \001" + + "(\t\"\271\002\n\014AttackVector\022\035\n\031ATTACK_VECTOR_UNS" + + "PECIFIED\020\000\022\021\n\rLOCAL_STORAGE\020\001\022\023\n\017SESSION" + + "_STORAGE\020\002\022\017\n\013WINDOW_NAME\020\003\022\014\n\010REFERRER\020" + + "\004\022\016\n\nFORM_INPUT\020\005\022\n\n\006COOKIE\020\006\022\020\n\014POST_ME" + + "SSAGE\020\007\022\022\n\016GET_PARAMETERS\020\010\022\020\n\014URL_FRAGM" + + "ENT\020\t\022\020\n\014HTML_COMMENT\020\n\022\023\n\017POST_PARAMETE" + + "RS\020\013\022\014\n\010PROTOCOL\020\014\022\016\n\nSTORED_XSS\020\r\022\017\n\013SA" + + "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017\"\251" + + "\001\n\003Xxe\022\025\n\rpayload_value\030\001 \001(\t\022J\n\020payload" + + "_location\030\002 \001(\01620.google.cloud.websecuri" + + "tyscanner.v1.Xxe.Location\"?\n\010Location\022\030\n" + + "\024LOCATION_UNSPECIFIED\020\000\022\031\n\025COMPLETE_REQU" + + "EST_BODY\020\001B\205\002\n&com.google.cloud.websecur" + + "ityscanner.v1B\021FindingAddonProtoP\001ZTgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "websecurityscanner/v1;websecurityscanner" + + "\252\002\"Google.Cloud.WebSecurityScanner.V1\312\002\"" + + "Google\\Cloud\\WebSecurityScanner\\V1\352\002%Goo" + + "gle::Cloud::WebSecurityScanner::V1b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_Form_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Form_descriptor, + new java.lang.String[] { "ActionUri", "Fields", }); + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor, + new java.lang.String[] { "LibraryName", "Version", "LearnMoreUrls", }); + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor, + new java.lang.String[] { "ContentType", "ResourceUrl", }); + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor, + new java.lang.String[] { "ParameterNames", }); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor, + new java.lang.String[] { "Headers", "MissingHeaders", }); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor = + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor, + new java.lang.String[] { "StackTraces", "ErrorMessage", "AttackVector", "StoredXssSeedingUrl", }); + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor, + new java.lang.String[] { "PayloadValue", "PayloadLocation", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java similarity index 84% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java index 338bf2e8..49d6e612 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1/finding.proto package com.google.cloud.websecurityscanner.v1; -public interface FindingOrBuilder - extends +public interface FindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Finding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -33,13 +15,10 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -47,14 +26,12 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -62,13 +39,10 @@ public interface FindingOrBuilder
    * 
* * string finding_type = 2; - * * @return The findingType. */ java.lang.String getFindingType(); /** - * - * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -76,279 +50,221 @@ public interface FindingOrBuilder
    * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ - com.google.protobuf.ByteString getFindingTypeBytes(); + com.google.protobuf.ByteString + getFindingTypeBytes(); /** - * - * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The severity. */ com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity(); /** - * - * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ java.lang.String getFuzzedUrl(); /** - * - * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - com.google.protobuf.ByteString getFuzzedUrlBytes(); + com.google.protobuf.ByteString + getFuzzedUrlBytes(); /** - * - * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); /** - * - * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ java.lang.String getReproductionUrl(); /** - * - * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - com.google.protobuf.ByteString getReproductionUrlBytes(); + com.google.protobuf.ByteString + getReproductionUrlBytes(); /** - * - * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ java.lang.String getFrameUrl(); /** - * - * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - com.google.protobuf.ByteString getFrameUrlBytes(); + com.google.protobuf.ByteString + getFrameUrlBytes(); /** - * - * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ java.lang.String getFinalUrl(); /** - * - * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - com.google.protobuf.ByteString getFinalUrlBytes(); + com.google.protobuf.ByteString + getFinalUrlBytes(); /** - * - * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ java.lang.String getTrackingId(); /** - * - * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - com.google.protobuf.ByteString getTrackingIdBytes(); + com.google.protobuf.ByteString + getTrackingIdBytes(); /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return Whether the form field is set. */ boolean hasForm(); /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return The form. */ com.google.cloud.websecurityscanner.v1.Form getForm(); /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -359,32 +275,24 @@ public interface FindingOrBuilder
   com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ boolean hasOutdatedLibrary(); /** - * - * *
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary(); /** - * - * *
    * Output only. An addon containing information about outdated libraries.
    * 
@@ -394,34 +302,26 @@ public interface FindingOrBuilder com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder(); /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ boolean hasViolatingResource(); /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingResource(); /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -432,32 +332,24 @@ public interface FindingOrBuilder
   com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ boolean hasVulnerableHeaders(); /** - * - * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHeaders(); /** - * - * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
@@ -467,74 +359,54 @@ public interface FindingOrBuilder com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder(); /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ boolean hasVulnerableParameters(); /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ com.google.cloud.websecurityscanner.v1.VulnerableParameters getVulnerableParameters(); /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder(); + com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder(); /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return Whether the xss field is set. */ boolean hasXss(); /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return The xss. */ com.google.cloud.websecurityscanner.v1.Xss getXss(); /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
@@ -542,4 +414,31 @@ public interface FindingOrBuilder * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder(); + + /** + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the xxe field is set. + */ + boolean hasXxe(); + /** + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The xxe. + */ + com.google.cloud.websecurityscanner.v1.Xxe getXxe(); + /** + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java new file mode 100644 index 00000000..f2c9f9d5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class FindingProto { + private FindingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/websecurityscanner/v1/fin" + + "ding.proto\022\"google.cloud.websecurityscan" + + "ner.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\0326google/cloud" + + "/websecurityscanner/v1/finding_addon.pro" + + "to\"\354\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + + "type\030\002 \001(\t\022K\n\010severity\030\021 \001(\01624.google.cl" + + "oud.websecurityscanner.v1.Finding.Severi" + + "tyB\003\340A\003\022\023\n\013http_method\030\003 \001(\t\022\022\n\nfuzzed_u" + + "rl\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013description\030\006 " + + "\001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\tframe_u" + + "rl\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tracking_" + + "id\030\n \001(\t\0226\n\004form\030\020 \001(\0132(.google.cloud.we" + + "bsecurityscanner.v1.Form\022M\n\020outdated_lib" + + "rary\030\013 \001(\01323.google.cloud.websecuritysca" + + "nner.v1.OutdatedLibrary\022Q\n\022violating_res" + + "ource\030\014 \001(\01325.google.cloud.websecuritysc" + + "anner.v1.ViolatingResource\022Q\n\022vulnerable" + + "_headers\030\017 \001(\01325.google.cloud.websecurit" + + "yscanner.v1.VulnerableHeaders\022W\n\025vulnera" + + "ble_parameters\030\r \001(\01328.google.cloud.webs" + + "ecurityscanner.v1.VulnerableParameters\0224" + + "\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritysc" + + "anner.v1.Xss\0229\n\003xxe\030\022 \001(\0132\'.google.cloud" + + ".websecurityscanner.v1.XxeB\003\340A\003\"Q\n\010Sever" + + "ity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICA" + + "L\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200" + + "\001\n)websecurityscanner.googleapis.com/Fin" + + "ding\022Sprojects/{project}/scanConfigs/{sc" + + "an_config}/scanRuns/{scan_run}/findings/" + + "{finding}B\200\002\n&com.google.cloud.websecuri" + + "tyscanner.v1B\014FindingProtoP\001ZTgoogle.gol" + + "ang.org/genproto/googleapis/cloud/websec" + + "urityscanner/v1;websecurityscanner\252\002\"Goo" + + "gle.Cloud.WebSecurityScanner.V1\312\002\"Google" + + "\\Cloud\\WebSecurityScanner\\V1\352\002%Google::C" + + "loud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor, + new java.lang.String[] { "Name", "FindingType", "Severity", "HttpMethod", "FuzzedUrl", "Body", "Description", "ReproductionUrl", "FrameUrl", "FinalUrl", "TrackingId", "Form", "OutdatedLibrary", "ViolatingResource", "VulnerableHeaders", "VulnerableParameters", "Xss", "Xxe", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java index f9240cef..df1810f2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A FindingTypeStats resource represents stats regarding a specific FindingType
  * of Findings under a given ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.FindingTypeStats}
  */
-public final class FindingTypeStats extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FindingTypeStats extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.FindingTypeStats)
     FindingTypeStatsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FindingTypeStats.newBuilder() to construct.
   private FindingTypeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FindingTypeStats() {
     findingType_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FindingTypeStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FindingTypeStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private FindingTypeStats(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              findingType_ = s;
-              break;
-            }
-          case 16:
-            {
-              findingCount_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            findingType_ = s;
+            break;
+          }
+          case 16: {
+
+            findingCount_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,39 +79,34 @@ private FindingTypeStats(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.FindingTypeStats.class,
-            com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
+            com.google.cloud.websecurityscanner.v1.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
   }
 
   public static final int FINDING_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object findingType_;
   /**
-   *
-   *
    * 
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The findingType. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** - * - * *
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -171,14 +148,11 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_; /** - * - * *
    * Output only. The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -187,7 +161,6 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, findingType_); } @@ -219,7 +193,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, findingType_); } if (findingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, findingCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,16 +204,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.FindingTypeStats)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.FindingTypeStats other = - (com.google.cloud.websecurityscanner.v1.FindingTypeStats) obj; + com.google.cloud.websecurityscanner.v1.FindingTypeStats other = (com.google.cloud.websecurityscanner.v1.FindingTypeStats) obj; - if (!getFindingType().equals(other.getFindingType())) return false; - if (getFindingCount() != other.getFindingCount()) return false; + if (!getFindingType() + .equals(other.getFindingType())) return false; + if (getFindingCount() + != other.getFindingCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,104 +236,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.FindingTypeStats prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.FindingTypeStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A FindingTypeStats resource represents stats regarding a specific FindingType
    * of Findings under a given ScanRun.
@@ -365,23 +333,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.FindingTypeStats}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.FindingTypeStats)
       com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.FindingTypeStats.class,
-              com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
+              com.google.cloud.websecurityscanner.v1.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.FindingTypeStats.newBuilder()
@@ -389,15 +355,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -409,9 +376,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
@@ -430,8 +397,7 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.FindingTypeStats buildPartial() {
-      com.google.cloud.websecurityscanner.v1.FindingTypeStats result =
-          new com.google.cloud.websecurityscanner.v1.FindingTypeStats(this);
+      com.google.cloud.websecurityscanner.v1.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1.FindingTypeStats(this);
       result.findingType_ = findingType_;
       result.findingCount_ = findingCount_;
       onBuilt();
@@ -442,39 +408,38 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.FindingTypeStats) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.FindingTypeStats) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.FindingTypeStats)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -482,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.FindingTypeStats other) {
-      if (other == com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()) return this;
       if (!other.getFindingType().isEmpty()) {
         findingType_ = other.findingType_;
         onChanged();
@@ -510,8 +474,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.FindingTypeStats) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.FindingTypeStats) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -523,20 +486,18 @@ public Builder mergeFrom(
 
     private java.lang.Object findingType_ = "";
     /**
-     *
-     *
      * 
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -545,21 +506,20 @@ public java.lang.String getFindingType() { } } /** - * - * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -567,76 +527,66 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } } /** - * - * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(java.lang.String value) { + public Builder setFindingType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** - * - * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; } - private int findingCount_; + private int findingCount_ ; /** - * - * *
      * Output only. The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -644,43 +594,37 @@ public int getFindingCount() { return findingCount_; } /** - * - * *
      * Output only. The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @param value The findingCount to set. * @return This builder for chaining. */ public Builder setFindingCount(int value) { - + findingCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return This builder for chaining. */ public Builder clearFindingCount() { - + findingCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -690,12 +634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.FindingTypeStats) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.FindingTypeStats) private static final com.google.cloud.websecurityscanner.v1.FindingTypeStats DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.FindingTypeStats(); } @@ -704,16 +648,16 @@ public static com.google.cloud.websecurityscanner.v1.FindingTypeStats getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindingTypeStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingTypeStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FindingTypeStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,4 +672,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java index e64b9e99..23a22c05 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java @@ -1,62 +1,38 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1; -public interface FindingTypeStatsOrBuilder - extends +public interface FindingTypeStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.FindingTypeStats) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The findingType. */ java.lang.String getFindingType(); /** - * - * *
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ - com.google.protobuf.ByteString getFindingTypeBytes(); + com.google.protobuf.ByteString + getFindingTypeBytes(); /** - * - * *
    * Output only. The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ int getFindingCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java new file mode 100644 index 00000000..deb9c663 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_type_stats.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class FindingTypeStatsProto { + private FindingTypeStatsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1/fin" + + "ding_type_stats.proto\022\"google.cloud.webs" + + "ecurityscanner.v1\"?\n\020FindingTypeStats\022\024\n" + + "\014finding_type\030\001 \001(\t\022\025\n\rfinding_count\030\002 \001" + + "(\005B\211\002\n&com.google.cloud.websecurityscann" + + "er.v1B\025FindingTypeStatsProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor, + new java.lang.String[] { "FindingType", "FindingCount", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java index 82e5baad..8dc28fa3 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * ! Information about a vulnerability with an HTML.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Form} */ -public final class Form extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Form extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Form) FormOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Form.newBuilder() to construct. private Form(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Form() { actionUri_ = ""; fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private Form() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Form(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Form( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private Form( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - actionUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add(s); - break; + actionUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + fields_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private Form( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = fields_.getUnmodifiableView(); @@ -112,33 +94,27 @@ private Form( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Form.class, - com.google.cloud.websecurityscanner.v1.Form.Builder.class); + com.google.cloud.websecurityscanner.v1.Form.class, com.google.cloud.websecurityscanner.v1.Form.Builder.class); } public static final int ACTION_URI_FIELD_NUMBER = 1; private volatile java.lang.Object actionUri_; /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The actionUri. */ @java.lang.Override @@ -147,29 +123,29 @@ public java.lang.String getActionUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; } } /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ @java.lang.Override - public com.google.protobuf.ByteString getActionUriBytes() { + public com.google.protobuf.ByteString + getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionUri_ = b; return b; } else { @@ -180,42 +156,34 @@ public com.google.protobuf.ByteString getActionUriBytes() { public static final int FIELDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList fields_; /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_; } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -223,23 +191,20 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionUri_); } @@ -286,16 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Form)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Form other = - (com.google.cloud.websecurityscanner.v1.Form) obj; + com.google.cloud.websecurityscanner.v1.Form other = (com.google.cloud.websecurityscanner.v1.Form) obj; - if (!getActionUri().equals(other.getActionUri())) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getActionUri() + .equals(other.getActionUri())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,127 +285,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Form parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.Form parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.Form parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Form parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Form prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ! Information about a vulnerability with an HTML.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Form} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Form) com.google.cloud.websecurityscanner.v1.FormOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Form.class, - com.google.cloud.websecurityscanner.v1.Form.Builder.class); + com.google.cloud.websecurityscanner.v1.Form.class, com.google.cloud.websecurityscanner.v1.Form.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.Form.newBuilder() @@ -446,15 +404,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; } @java.lang.Override @@ -487,8 +446,7 @@ public com.google.cloud.websecurityscanner.v1.Form build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.Form buildPartial() { - com.google.cloud.websecurityscanner.v1.Form result = - new com.google.cloud.websecurityscanner.v1.Form(this); + com.google.cloud.websecurityscanner.v1.Form result = new com.google.cloud.websecurityscanner.v1.Form(this); int from_bitField0_ = bitField0_; result.actionUri_ = actionUri_; if (((bitField0_ & 0x00000001) != 0)) { @@ -504,39 +462,38 @@ public com.google.cloud.websecurityscanner.v1.Form buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.Form) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.Form) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.Form)other); } else { super.mergeFrom(other); return this; @@ -587,25 +544,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object actionUri_ = ""; /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return The actionUri. */ public java.lang.String getActionUri() { java.lang.Object ref = actionUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; @@ -614,21 +568,20 @@ public java.lang.String getActionUri() { } } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ - public com.google.protobuf.ByteString getActionUriBytes() { + public com.google.protobuf.ByteString + getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionUri_ = b; return b; } else { @@ -636,112 +589,95 @@ public com.google.protobuf.ByteString getActionUriBytes() { } } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @param value The actionUri to set. * @return This builder for chaining. */ - public Builder setActionUri(java.lang.String value) { + public Builder setActionUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionUri_ = value; onChanged(); return this; } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return This builder for chaining. */ public Builder clearActionUri() { - + actionUri_ = getDefaultInstance().getActionUri(); onChanged(); return this; } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @param value The bytes for actionUri to set. * @return This builder for chaining. */ - public Builder setActionUriBytes(com.google.protobuf.ByteString value) { + public Builder setActionUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList fields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_.getUnmodifiableView(); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -749,90 +685,80 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index to set the value at. * @param value The fields to set. * @return This builder for chaining. */ - public Builder setFields(int index, java.lang.String value) { + public Builder setFields( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param value The fields to add. * @return This builder for chaining. */ - public Builder addFields(java.lang.String value) { + public Builder addFields( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param values The fields to add. * @return This builder for chaining. */ - public Builder addAllFields(java.lang.Iterable values) { + public Builder addAllFields( + java.lang.Iterable values) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return This builder for chaining. */ public Builder clearFields() { @@ -842,30 +768,28 @@ public Builder clearFields() { return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param value The bytes of the fields to add. * @return This builder for chaining. */ - public Builder addFieldsBytes(com.google.protobuf.ByteString value) { + public Builder addFieldsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Form) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Form) private static final com.google.cloud.websecurityscanner.v1.Form DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Form(); } @@ -889,16 +813,16 @@ public static com.google.cloud.websecurityscanner.v1.Form getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Form parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Form(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Form parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Form(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -913,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java index 33d3545a..07e70a5b 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java @@ -1,101 +1,70 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface FormOrBuilder - extends +public interface FormOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Form) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The actionUri. */ java.lang.String getActionUri(); /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ - com.google.protobuf.ByteString getActionUriBytes(); + com.google.protobuf.ByteString + getActionUriBytes(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return The count of fields. */ int getFieldsCount(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ java.lang.String getFields(int index); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - com.google.protobuf.ByteString getFieldsBytes(int index); + com.google.protobuf.ByteString + getFieldsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java index e66da3df..82baafda 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `GetFinding` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetFindingRequest} */ -public final class GetFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.GetFindingRequest) GetFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFindingRequest.newBuilder() to construct. private GetFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFindingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetFindingRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -150,15 +126,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.GetFindingRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.GetFindingRequest other = - (com.google.cloud.websecurityscanner.v1.GetFindingRequest) obj; + com.google.cloud.websecurityscanner.v1.GetFindingRequest other = (com.google.cloud.websecurityscanner.v1.GetFindingRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.GetFindingRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.GetFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetFinding` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.GetFindingRequest) com.google.cloud.websecurityscanner.v1.GetFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.GetFindingRequest.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; } @java.lang.Override @@ -398,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1.GetFindingRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.GetFindingRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.GetFindingRequest result = - new com.google.cloud.websecurityscanner.v1.GetFindingRequest(this); + com.google.cloud.websecurityscanner.v1.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1.GetFindingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1.GetFindingRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.GetFindingRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.GetFindingRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.GetFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetFindingRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.GetFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.GetFindingRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.GetFindingRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -496,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -520,14 +480,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,8 +496,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -544,22 +503,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -567,18 +524,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -586,23 +540,23 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.GetFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.GetFindingRequest) private static final com.google.cloud.websecurityscanner.v1.GetFindingRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.GetFindingRequest(); } @@ -626,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1.GetFindingRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java index cd73cc3a..0b92e26a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface GetFindingRequestOrBuilder - extends +public interface GetFindingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.GetFindingRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -33,13 +15,10 @@ public interface GetFindingRequestOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -47,8 +26,8 @@ public interface GetFindingRequestOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java index d5a7804d..43355e9f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `GetScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanConfigRequest} */ -public final class GetScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.GetScanConfigRequest) GetScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanConfigRequest.newBuilder() to construct. private GetScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GetScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.GetScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.GetScanConfigRequest) com.google.cloud.websecurityscanner.v1.GetScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; } @java.lang.Override @@ -396,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +374,38 @@ public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -447,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -472,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,22 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -531,71 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.GetScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.GetScanConfigRequest) private static final com.google.cloud.websecurityscanner.v1.GetScanConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(); } @@ -619,16 +573,16 @@ public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java index 39bbf9c2..eb1926cd 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface GetScanConfigRequestOrBuilder - extends +public interface GetScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.GetScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java index 7e099644..3d147172 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `GetScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanRunRequest} */ -public final class GetScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.GetScanRunRequest) GetScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanRunRequest.newBuilder() to construct. private GetScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -150,15 +126,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.GetScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.GetScanRunRequest other = - (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1.GetScanRunRequest other = (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.GetScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.GetScanRunRequest) com.google.cloud.websecurityscanner.v1.GetScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.GetScanRunRequest.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; } @java.lang.Override @@ -398,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1.GetScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.GetScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.GetScanRunRequest result = - new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(this); + com.google.cloud.websecurityscanner.v1.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1.GetScanRunRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.GetScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.GetScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.GetScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -496,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -520,14 +480,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,8 +496,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -544,22 +503,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -567,18 +524,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -586,23 +540,23 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.GetScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.GetScanRunRequest) private static final com.google.cloud.websecurityscanner.v1.GetScanRunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(); } @@ -626,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java index c338f298..46d95644 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface GetScanRunRequestOrBuilder - extends +public interface GetScanRunRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.GetScanRunRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -33,13 +15,10 @@ public interface GetScanRunRequestOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -47,8 +26,8 @@ public interface GetScanRunRequestOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java index bd693672..aadb3f56 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} */ -public final class ListCrawledUrlsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) ListCrawledUrlsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsRequest.newBuilder() to construct. private ListCrawledUrlsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListCrawledUrlsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,33 +85,29 @@ private ListCrawledUrlsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -138,7 +115,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -147,15 +123,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -163,15 +138,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -182,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -191,7 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -200,15 +173,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -216,15 +188,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -235,8 +208,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -244,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -253,7 +223,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,7 +261,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -301,17 +272,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest other = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest other = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -335,127 +308,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.newBuilder() @@ -463,15 +426,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -485,14 +449,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance(); } @@ -507,8 +470,7 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result = - new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(this); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -520,39 +482,38 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest)other); } else { super.mergeFrom(other); return this; @@ -560,9 +521,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -593,9 +552,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,8 +564,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -616,13 +571,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -631,8 +586,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -640,14 +593,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -655,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -664,22 +616,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -687,18 +637,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -706,16 +653,16 @@ public Builder clearParent() {
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -723,8 +670,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -732,13 +677,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -747,8 +692,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -756,14 +699,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -771,8 +715,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -780,22 +722,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -803,18 +743,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -822,25 +759,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -848,7 +783,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -856,8 +790,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -865,19 +797,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -885,18 +814,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -906,13 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) - private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(); } @@ -921,16 +848,16 @@ public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,4 +872,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java index 9b03c21d..f7e82ce1 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListCrawledUrlsRequestOrBuilder - extends +public interface ListCrawledUrlsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -33,13 +15,10 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -47,14 +26,12 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -62,13 +39,10 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -76,14 +50,12 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -91,7 +63,6 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java index 493adc82..965c2f5f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} */ -public final class ListCrawledUrlsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) ListCrawledUrlsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsResponse.newBuilder() to construct. private ListCrawledUrlsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsResponse() { crawledUrls_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListCrawledUrlsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - crawledUrls_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crawledUrls_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + crawledUrls_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListCrawledUrlsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -115,27 +94,22 @@ private ListCrawledUrlsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); } public static final int CRAWLED_URLS_FIELD_NUMBER = 1; private java.util.List crawledUrls_; /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getCraw return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getCraw * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCrawledUrlsOrBuilderList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -174,8 +144,6 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde return crawledUrls_.get(index); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < crawledUrls_.size(); i++) { output.writeMessage(1, crawledUrls_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < crawledUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, crawledUrls_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, crawledUrls_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse other = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse other = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) obj; - if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCrawledUrlsList() + .equals(other.getCrawledUrlsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCrawledUrlsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result = - new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse(this); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse(this); int from_bitField0_ = bitField0_; if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,39 +478,38 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse)other); } else { super.mergeFrom(other); return this; @@ -565,9 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance()) return this; if (crawledUrlsBuilder_ == null) { if (!other.crawledUrls_.isEmpty()) { if (crawledUrls_.isEmpty()) { @@ -586,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsR crawledUrlsBuilder_ = null; crawledUrls_ = other.crawledUrls_; bitField0_ = (bitField0_ & ~0x00000001); - crawledUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCrawledUrlsFieldBuilder() - : null; + crawledUrlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCrawledUrlsFieldBuilder() : null; } else { crawledUrlsBuilder_.addAllMessages(other.crawledUrls_); } @@ -618,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,30 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List crawledUrls_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCrawledUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList( - crawledUrls_); + crawledUrls_ = new java.util.ArrayList(crawledUrls_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.CrawledUrl, - com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> - crawledUrlsBuilder_; + com.google.cloud.websecurityscanner.v1.CrawledUrl, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> crawledUrlsBuilder_; /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getCraw } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -683,8 +619,6 @@ public int getCrawledUrlsCount() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -722,8 +654,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -742,8 +672,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -764,8 +692,6 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1.CrawledUrl return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -787,8 +713,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -807,8 +731,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -827,8 +749,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllCrawledUrls( java.lang.Iterable values) { if (crawledUrlsBuilder_ == null) { ensureCrawledUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crawledUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, crawledUrls_); onChanged(); } else { crawledUrlsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearCrawledUrls() { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeCrawledUrls(int index) { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder getCrawledUrlsB return getCrawledUrlsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder getCrawledUrlsB public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( int index) { if (crawledUrlsBuilder_ == null) { - return crawledUrls_.get(index); - } else { + return crawledUrls_.get(index); } else { return crawledUrlsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsOrBuilderList() { + public java.util.List + getCrawledUrlsOrBuilderList() { if (crawledUrlsBuilder_ != null) { return crawledUrlsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsBuilder() { - return getCrawledUrlsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsB */ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsBuilder( int index) { - return getCrawledUrlsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsBuilderList() { + public java.util.List + getCrawledUrlsBuilderList() { return getCrawledUrlsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.CrawledUrl, - com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> + com.google.cloud.websecurityscanner.v1.CrawledUrl, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> getCrawledUrlsFieldBuilder() { if (crawledUrlsBuilder_ == null) { - crawledUrlsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.CrawledUrl, - com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder>( - crawledUrls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + crawledUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.CrawledUrl, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder>( + crawledUrls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); crawledUrls_ = null; } return crawledUrlsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) - private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse(); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java index e59fc74d..f89e91b7 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListCrawledUrlsResponseOrBuilder - extends +public interface ListCrawledUrlsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - java.util.List getCrawledUrlsList(); + java.util.List + getCrawledUrlsList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -44,8 +25,6 @@ public interface ListCrawledUrlsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int index); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -54,51 +33,43 @@ public interface ListCrawledUrlsResponseOrBuilder */ int getCrawledUrlsCount(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - java.util.List + java.util.List getCrawledUrlsOrBuilderList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrlsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java index 7b642cfe..e2d3160e 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} */ -public final class ListFindingTypeStatsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) ListFindingTypeStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsRequest.newBuilder() to construct. private ListFindingTypeStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ListFindingTypeStatsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private ListFindingTypeStatsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -150,15 +126,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,145 +208,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,16 +345,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.getDefaultInstance(); } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result = - new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(this); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -413,51 +376,46 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -481,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -504,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -519,8 +473,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -528,14 +480,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -543,8 +496,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -552,22 +503,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -575,18 +524,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -594,23 +540,23 @@ public Builder clearParent() {
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -620,32 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) - private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,8 +601,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java index d75bddba..d00ea56d 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingTypeStatsRequestOrBuilder - extends +public interface ListFindingTypeStatsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -33,13 +15,10 @@ public interface ListFindingTypeStatsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -47,8 +26,8 @@ public interface ListFindingTypeStatsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java index adda8b2d..11a5f4fa 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} */ -public final class ListFindingTypeStatsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) ListFindingTypeStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsResponse.newBuilder() to construct. private ListFindingTypeStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsResponse() { findingTypeStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private ListFindingTypeStatsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.FindingTypeStats>(); - mutable_bitField0_ |= 0x00000001; - } - findingTypeStats_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findingTypeStats_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + findingTypeStats_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private ListFindingTypeStatsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -108,100 +87,80 @@ private ListFindingTypeStatsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); } public static final int FINDING_TYPE_STATS_FIELD_NUMBER = 1; private java.util.List findingTypeStats_; /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingTypeStatsOrBuilderList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override public int getFindingTypeStatsCount() { return findingTypeStats_.size(); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeStats(int index) { return findingTypeStats_.get(index); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { return findingTypeStats_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } @@ -227,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findingTypeStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findingTypeStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -237,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) obj; - if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; + if (!getFindingTypeStatsList() + .equals(other.getFindingTypeStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,147 +228,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingTypeStatsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -421,16 +370,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.getDefaultInstance(); } @java.lang.Override @@ -444,8 +391,7 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse build @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result = - new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse(this); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse(this); int from_bitField0_ = bitField0_; if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -464,51 +410,46 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.getDefaultInstance()) return this; if (findingTypeStatsBuilder_ == null) { if (!other.findingTypeStats_.isEmpty()) { if (findingTypeStats_.isEmpty()) { @@ -527,10 +468,9 @@ public Builder mergeFrom( findingTypeStatsBuilder_ = null; findingTypeStats_ = other.findingTypeStats_; bitField0_ = (bitField0_ & ~0x00000001); - findingTypeStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingTypeStatsFieldBuilder() - : null; + findingTypeStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingTypeStatsFieldBuilder() : null; } else { findingTypeStatsBuilder_.addAllMessages(other.findingTypeStats_); } @@ -555,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,39 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - findingTypeStats_ = java.util.Collections.emptyList(); - + private java.util.List findingTypeStats_ = + java.util.Collections.emptyList(); private void ensureFindingTypeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList( - findingTypeStats_); + findingTypeStats_ = new java.util.ArrayList(findingTypeStats_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.FindingTypeStats, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> - findingTypeStatsBuilder_; + com.google.cloud.websecurityscanner.v1.FindingTypeStats, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> findingTypeStatsBuilder_; /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { if (findingTypeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(findingTypeStats_); } else { @@ -606,14 +533,11 @@ private void ensureFindingTypeStatsIsMutable() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public int getFindingTypeStatsCount() { if (findingTypeStatsBuilder_ == null) { @@ -623,14 +547,11 @@ public int getFindingTypeStatsCount() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -640,14 +561,11 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeSta } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { @@ -664,18 +582,14 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.set(index, builderForValue.build()); @@ -686,17 +600,13 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public Builder addFindingTypeStats( - com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { + public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { if (findingTypeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,14 +620,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { @@ -734,14 +641,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { @@ -755,18 +659,14 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.add(index, builderForValue.build()); @@ -777,21 +677,18 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder addAllFindingTypeStats( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingTypeStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findingTypeStats_); onChanged(); } else { findingTypeStatsBuilder_.addAllMessages(values); @@ -799,14 +696,11 @@ public Builder addAllFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder clearFindingTypeStats() { if (findingTypeStatsBuilder_ == null) { @@ -819,14 +713,11 @@ public Builder clearFindingTypeStats() { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder removeFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -839,50 +730,39 @@ public Builder removeFindingTypeStats(int index) { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder - getFindingTypeStatsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder getFindingTypeStatsBuilder( + int index) { return getFindingTypeStatsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { if (findingTypeStatsBuilder_ == null) { - return findingTypeStats_.get(index); - } else { + return findingTypeStats_.get(index); } else { return findingTypeStatsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> - getFindingTypeStatsOrBuilderList() { + public java.util.List + getFindingTypeStatsOrBuilderList() { if (findingTypeStatsBuilder_ != null) { return findingTypeStatsBuilder_.getMessageOrBuilderList(); } else { @@ -890,62 +770,45 @@ public Builder removeFindingTypeStats(int index) { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder - addFindingTypeStatsBuilder() { - return getFindingTypeStatsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder addFindingTypeStatsBuilder() { + return getFindingTypeStatsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder - addFindingTypeStatsBuilder(int index) { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder addFindingTypeStatsBuilder( + int index) { + return getFindingTypeStatsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsBuilderList() { + public java.util.List + getFindingTypeStatsBuilderList() { return getFindingTypeStatsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.FindingTypeStats, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> + com.google.cloud.websecurityscanner.v1.FindingTypeStats, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> getFindingTypeStatsFieldBuilder() { if (findingTypeStatsBuilder_ == null) { - findingTypeStatsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.FindingTypeStats, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder>( + findingTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.FindingTypeStats, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder>( findingTypeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -954,9 +817,9 @@ public Builder removeFindingTypeStats(int index) { } return findingTypeStatsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -966,32 +829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) - private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse(); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1003,8 +864,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java similarity index 59% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java index 26d4bdd6..7a7d5d41 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java @@ -1,82 +1,52 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingTypeStatsResponseOrBuilder - extends +public interface ListFindingTypeStatsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - java.util.List getFindingTypeStatsList(); + java.util.List + getFindingTypeStatsList(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeStats(int index); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ int getFindingTypeStatsCount(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - java.util.List + java.util.List getFindingTypeStatsOrBuilderList(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( int index); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java similarity index 74% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java index 31fca16b..e494034d 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsRequest} */ -public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingsRequest) ListFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 32: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,33 +92,29 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -146,7 +122,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -155,15 +130,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -171,15 +145,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -190,8 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -200,7 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -209,15 +181,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -226,15 +197,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -245,8 +217,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -254,7 +224,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -263,15 +232,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -279,15 +247,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -298,8 +267,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -307,7 +274,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -316,7 +282,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -360,7 +326,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -370,18 +337,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingsRequest other = - (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + com.google.cloud.websecurityscanner.v1.ListFindingsRequest other = (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -407,127 +377,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingsRequest) com.google.cloud.websecurityscanner.v1.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListFindingsRequest.newBuilder() @@ -535,15 +495,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -559,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; } @java.lang.Override @@ -580,8 +541,7 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingsRequest result = - new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(this); + com.google.cloud.websecurityscanner.v1.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageToken_ = pageToken_; @@ -594,39 +554,38 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -634,8 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.ListFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -670,8 +628,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -683,8 +640,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -692,13 +647,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -707,8 +662,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -716,14 +669,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -731,8 +685,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -740,22 +692,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -763,18 +713,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -782,16 +729,16 @@ public Builder clearParent() {
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -799,8 +746,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -809,13 +754,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -824,8 +769,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -834,14 +777,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -849,8 +793,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -859,22 +801,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -883,18 +823,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -903,16 +840,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -920,8 +857,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -929,13 +864,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -944,8 +879,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -953,14 +886,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -968,8 +902,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -977,22 +909,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1000,18 +930,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1019,25 +946,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1045,7 +970,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1053,8 +977,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1062,19 +984,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1082,18 +1001,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingsRequest) private static final com.google.cloud.websecurityscanner.v1.ListFindingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(); } @@ -1117,16 +1035,16 @@ public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,4 +1059,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java index c15c0164..7e5d643b 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingsRequestOrBuilder - extends +public interface ListFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -33,13 +15,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -47,14 +26,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -63,13 +40,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -78,14 +52,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -93,13 +65,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -107,14 +76,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -122,7 +89,6 @@ public interface ListFindingsRequestOrBuilder
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java index c21c582c..40fd04b2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsResponse} */ -public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingsResponse) ListFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + findings_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -114,27 +94,22 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** - * - * *
    * The list of Findings returned.
    * 
@@ -146,8 +121,6 @@ public java.util.List getFinding return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -155,13 +128,11 @@ public java.util.List getFinding * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -173,8 +144,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { return findings_.get(index); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder( + int index) { return findings_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingsResponse other = - (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListFindingsResponse other = (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) obj; - if (!getFindingsList().equals(other.getFindingsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getFindingsList() + .equals(other.getFindingsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingsResponse) com.google.cloud.websecurityscanner.v1.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListFindingsResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingsResponse result = - new com.google.cloud.websecurityscanner.v1.ListFindingsResponse(this); + com.google.cloud.websecurityscanner.v1.ListFindingsResponse result = new com.google.cloud.websecurityscanner.v1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1.ListFindingsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListFindingsResponse.getDefaultInstance()) return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsResp findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingsFieldBuilder() - : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingsFieldBuilder() : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(findings_); + findings_ = new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Finding, - com.google.cloud.websecurityscanner.v1.Finding.Builder, - com.google.cloud.websecurityscanner.v1.FindingOrBuilder> - findingsBuilder_; + com.google.cloud.websecurityscanner.v1.Finding, com.google.cloud.websecurityscanner.v1.Finding.Builder, com.google.cloud.websecurityscanner.v1.FindingOrBuilder> findingsBuilder_; /** - * - * *
      * The list of Findings returned.
      * 
@@ -661,8 +605,6 @@ public java.util.List getFinding } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -677,8 +619,6 @@ public int getFindingsCount() { } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { } } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public Builder setFindings(int index, com.google.cloud.websecurityscanner.v1.Finding value) { + public Builder setFindings( + int index, com.google.cloud.websecurityscanner.v1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setFindings(int index, com.google.cloud.websecurityscanner.v1.Fin return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -735,8 +672,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -757,15 +692,14 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1.Finding value) return this; } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public Builder addFindings(int index, com.google.cloud.websecurityscanner.v1.Finding value) { + public Builder addFindings( + int index, com.google.cloud.websecurityscanner.v1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addFindings(int index, com.google.cloud.websecurityscanner.v1.Fin return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -799,8 +731,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -819,8 +749,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -831,7 +759,8 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -858,8 +785,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -877,44 +802,39 @@ public Builder removeFindings(int index) { return this; } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public com.google.cloud.websecurityscanner.v1.Finding.Builder getFindingsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.Finding.Builder getFindingsBuilder( + int index) { return getFindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder( + int index) { if (findingsBuilder_ == null) { - return findings_.get(index); - } else { + return findings_.get(index); } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -922,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuil } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -931,48 +849,42 @@ public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuil * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder(int index) { - return getFindingsFieldBuilder() - .addBuilder(index, com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder( + int index) { + return getFindingsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Finding, - com.google.cloud.websecurityscanner.v1.Finding.Builder, - com.google.cloud.websecurityscanner.v1.FindingOrBuilder> + com.google.cloud.websecurityscanner.v1.Finding, com.google.cloud.websecurityscanner.v1.Finding.Builder, com.google.cloud.websecurityscanner.v1.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Finding, - com.google.cloud.websecurityscanner.v1.Finding.Builder, - com.google.cloud.websecurityscanner.v1.FindingOrBuilder>( - findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Finding, com.google.cloud.websecurityscanner.v1.Finding.Builder, com.google.cloud.websecurityscanner.v1.FindingOrBuilder>( + findings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); findings_ = null; } return findingsBuilder_; @@ -980,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1003,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1026,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingsResponse) private static final com.google.cloud.websecurityscanner.v1.ListFindingsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingsResponse(); } @@ -1114,16 +1016,16 @@ public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java index 84050db4..c01bc8a1 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingsResponseOrBuilder - extends +public interface ListFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - java.util.List getFindingsList(); + java.util.List + getFindingsList(); /** - * - * *
    * The list of Findings returned.
    * 
@@ -44,8 +25,6 @@ public interface ListFindingsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1.Finding getFindings(int index); /** - * - * *
    * The list of Findings returned.
    * 
@@ -54,51 +33,43 @@ public interface ListFindingsResponseOrBuilder */ int getFindingsCount(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java index af5313b8..e4e99721 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsRequest} */ -public final class ListScanConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) ListScanConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsRequest.newBuilder() to construct. private ListScanConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanConfigsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,40 +85,35 @@ private ListScanConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -146,30 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -180,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -189,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -198,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -214,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -233,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -242,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -251,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest other = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest other = (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) com.google.cloud.websecurityscanner.v1.ListScanConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.newBuilder() @@ -461,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance(); } @@ -505,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result = - new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(this); + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -518,39 +480,38 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest)other); } else { super.mergeFrom(other); return this; @@ -558,9 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -591,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -605,21 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -628,22 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -651,64 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -716,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -725,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -740,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -749,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -764,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -773,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -796,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -815,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -841,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -849,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -858,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -878,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -899,13 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) - private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(); } @@ -914,16 +841,16 @@ public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java index 5b17e58e..8f4b7503 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanConfigsRequestOrBuilder - extends +public interface ListScanConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -60,13 +37,10 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -74,14 +48,12 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -89,7 +61,6 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java index 779fa701..2df50469 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsResponse} */ -public final class ListScanConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) ListScanConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsResponse.newBuilder() to construct. private ListScanConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsResponse() { scanConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListScanConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanConfigs_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanConfigs_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListScanConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -115,27 +94,22 @@ private ListScanConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); } public static final int SCAN_CONFIGS_FIELD_NUMBER = 1; private java.util.List scanConfigs_; /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getScan return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getScan * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanConfigsOrBuilderList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -174,8 +144,6 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde return scanConfigs_.get(index); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanConfigs_.size(); i++) { output.writeMessage(1, scanConfigs_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse other = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse other = (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) obj; - if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanConfigsList() + .equals(other.getScanConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) com.google.cloud.websecurityscanner.v1.ListScanConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result = - new com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse(this); + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result = new com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse(this); int from_bitField0_ = bitField0_; if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,39 +478,38 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse)other); } else { super.mergeFrom(other); return this; @@ -565,9 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance()) return this; if (scanConfigsBuilder_ == null) { if (!other.scanConfigs_.isEmpty()) { if (scanConfigs_.isEmpty()) { @@ -586,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsR scanConfigsBuilder_ = null; scanConfigs_ = other.scanConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - scanConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanConfigsFieldBuilder() - : null; + scanConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanConfigsFieldBuilder() : null; } else { scanConfigsBuilder_.addAllMessages(other.scanConfigs_); } @@ -618,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,30 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList( - scanConfigs_); + scanConfigs_ = new java.util.ArrayList(scanConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> - scanConfigsBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> scanConfigsBuilder_; /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getScan } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -683,8 +619,6 @@ public int getScanConfigsCount() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -722,8 +654,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -742,8 +672,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -764,8 +692,6 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -787,8 +713,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -807,8 +731,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -827,8 +749,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllScanConfigs( java.lang.Iterable values) { if (scanConfigsBuilder_ == null) { ensureScanConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanConfigs_); onChanged(); } else { scanConfigsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearScanConfigs() { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeScanConfigs(int index) { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigsB return getScanConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigsB public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigsOrBuilder( int index) { if (scanConfigsBuilder_ == null) { - return scanConfigs_.get(index); - } else { + return scanConfigs_.get(index); } else { return scanConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsOrBuilderList() { + public java.util.List + getScanConfigsOrBuilderList() { if (scanConfigsBuilder_ != null) { return scanConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsBuilder() { - return getScanConfigsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsB */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsBuilder( int index) { - return getScanConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsBuilderList() { + public java.util.List + getScanConfigsBuilderList() { return getScanConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> getScanConfigsFieldBuilder() { if (scanConfigsBuilder_ == null) { - scanConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( - scanConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( + scanConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanConfigs_ = null; } return scanConfigsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) - private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse(); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java index 37f677ab..8292317f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanConfigsResponseOrBuilder - extends +public interface ListScanConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - java.util.List getScanConfigsList(); + java.util.List + getScanConfigsList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanConfigsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int index); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanConfigsResponseOrBuilder */ int getScanConfigsCount(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - java.util.List + java.util.List getScanConfigsOrBuilderList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java index f6629344..efd0dc93 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsRequest} */ -public final class ListScanRunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanRunsRequest) ListScanRunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsRequest.newBuilder() to construct. private ListScanRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanRunsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,40 +85,35 @@ private ListScanRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -146,30 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -180,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -189,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -198,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -214,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -233,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -242,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -251,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest other = - (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest other = (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanRunsRequest) com.google.cloud.websecurityscanner.v1.ListScanRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.newBuilder() @@ -461,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +447,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; } @java.lang.Override @@ -504,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest result = - new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(this); + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -517,39 +480,38 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsRequest)other); } else { super.mergeFrom(other); return this; @@ -557,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -589,8 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,21 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -625,22 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -648,64 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -713,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -722,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -737,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -746,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -761,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -770,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -793,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -812,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -838,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -846,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -855,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -875,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -896,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanRunsRequest) private static final com.google.cloud.websecurityscanner.v1.ListScanRunsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(); } @@ -910,16 +841,16 @@ public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -934,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java index bc5e59d7..a460a3f6 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanRunsRequestOrBuilder - extends +public interface ListScanRunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanRunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -60,13 +37,10 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -74,14 +48,12 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -89,7 +61,6 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java index 2525eb9f..26db2ce2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsResponse} */ -public final class ListScanRunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanRunsResponse) ListScanRunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsResponse.newBuilder() to construct. private ListScanRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsResponse() { scanRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListScanRunsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanRuns_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanRuns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanRuns_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListScanRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -114,27 +94,22 @@ private ListScanRunsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); } public static final int SCAN_RUNS_FIELD_NUMBER = 1; private java.util.List scanRuns_; /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -146,8 +121,6 @@ public java.util.List getScanRun return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -155,13 +128,11 @@ public java.util.List getScanRun * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanRunsOrBuilderList() { return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -173,8 +144,6 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { return scanRuns_.get(index); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder( + int index) { return scanRuns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanRuns_.size(); i++) { output.writeMessage(1, scanRuns_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse other = - (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse other = (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) obj; - if (!getScanRunsList().equals(other.getScanRunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanRunsList() + .equals(other.getScanRunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanRunsResponse) com.google.cloud.websecurityscanner.v1.ListScanRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanRunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result = - new com.google.cloud.websecurityscanner.v1.ListScanRunsResponse(this); + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result = new com.google.cloud.websecurityscanner.v1.ListScanRunsResponse(this); int from_bitField0_ = bitField0_; if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.getDefaultInstance()) return this; if (scanRunsBuilder_ == null) { if (!other.scanRuns_.isEmpty()) { if (scanRuns_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsResp scanRunsBuilder_ = null; scanRuns_ = other.scanRuns_; bitField0_ = (bitField0_ & ~0x00000001); - scanRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanRunsFieldBuilder() - : null; + scanRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanRunsFieldBuilder() : null; } else { scanRunsBuilder_.addAllMessages(other.scanRuns_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanRuns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(scanRuns_); + scanRuns_ = new java.util.ArrayList(scanRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRun, - com.google.cloud.websecurityscanner.v1.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> - scanRunsBuilder_; + com.google.cloud.websecurityscanner.v1.ScanRun, com.google.cloud.websecurityscanner.v1.ScanRun.Builder, com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> scanRunsBuilder_; /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -661,8 +605,6 @@ public java.util.List getScanRun } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -677,8 +619,6 @@ public int getScanRunsCount() { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public Builder setScanRuns(int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { + public Builder setScanRuns( + int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { if (scanRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setScanRuns(int index, com.google.cloud.websecurityscanner.v1.Sca return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -735,8 +672,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -757,15 +692,14 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1.ScanRun value) return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public Builder addScanRuns(int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { + public Builder addScanRuns( + int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { if (scanRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addScanRuns(int index, com.google.cloud.websecurityscanner.v1.Sca return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -799,8 +731,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -819,8 +749,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -831,7 +759,8 @@ public Builder addAllScanRuns( java.lang.Iterable values) { if (scanRunsBuilder_ == null) { ensureScanRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanRuns_); onChanged(); } else { scanRunsBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -858,8 +785,6 @@ public Builder clearScanRuns() { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -877,44 +802,39 @@ public Builder removeScanRuns(int index) { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanRun.Builder getScanRunsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRun.Builder getScanRunsBuilder( + int index) { return getScanRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder( + int index) { if (scanRunsBuilder_ == null) { - return scanRuns_.get(index); - } else { + return scanRuns_.get(index); } else { return scanRunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsOrBuilderList() { + public java.util.List + getScanRunsOrBuilderList() { if (scanRunsBuilder_ != null) { return scanRunsBuilder_.getMessageOrBuilderList(); } else { @@ -922,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuil } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -931,48 +849,42 @@ public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuil * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder() { - return getScanRunsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder(int index) { - return getScanRunsFieldBuilder() - .addBuilder(index, com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder( + int index) { + return getScanRunsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsBuilderList() { + public java.util.List + getScanRunsBuilderList() { return getScanRunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRun, - com.google.cloud.websecurityscanner.v1.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanRun, com.google.cloud.websecurityscanner.v1.ScanRun.Builder, com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> getScanRunsFieldBuilder() { if (scanRunsBuilder_ == null) { - scanRunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRun, - com.google.cloud.websecurityscanner.v1.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder>( - scanRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRun, com.google.cloud.websecurityscanner.v1.ScanRun.Builder, com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder>( + scanRuns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanRuns_ = null; } return scanRunsBuilder_; @@ -980,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1003,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1026,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanRunsResponse) private static final com.google.cloud.websecurityscanner.v1.ListScanRunsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanRunsResponse(); } @@ -1114,16 +1016,16 @@ public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java index d4e4c85b..d453492c 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanRunsResponseOrBuilder - extends +public interface ListScanRunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanRunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - java.util.List getScanRunsList(); + java.util.List + getScanRunsList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanRunsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanRunsResponseOrBuilder */ int getScanRunsCount(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - java.util.List + java.util.List getScanRunsOrBuilderList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java index e0c24a29..4e919f8a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Information reported for an outdated library.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.OutdatedLibrary} */ -public final class OutdatedLibrary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutdatedLibrary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.OutdatedLibrary) OutdatedLibraryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutdatedLibrary.newBuilder() to construct. private OutdatedLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutdatedLibrary() { libraryName_ = ""; version_ = ""; @@ -45,15 +27,16 @@ private OutdatedLibrary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutdatedLibrary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutdatedLibrary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,37 +56,34 @@ private OutdatedLibrary( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - libraryName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + libraryName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - learnMoreUrls_.add(s); - break; + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + learnMoreUrls_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +91,8 @@ private OutdatedLibrary( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); @@ -120,33 +101,27 @@ private OutdatedLibrary( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); } public static final int LIBRARY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object libraryName_; /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ @java.lang.Override @@ -155,29 +130,29 @@ public java.lang.String getLibraryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; } } /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ @java.lang.Override - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -188,14 +163,11 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -204,29 +176,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -237,42 +209,34 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList learnMoreUrls_; /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_; } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -280,23 +244,20 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -349,17 +311,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.OutdatedLibrary)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.OutdatedLibrary other = - (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) obj; + com.google.cloud.websecurityscanner.v1.OutdatedLibrary other = (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) obj; - if (!getLibraryName().equals(other.getLibraryName())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; + if (!getLibraryName() + .equals(other.getLibraryName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getLearnMoreUrlsList() + .equals(other.getLearnMoreUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -385,127 +349,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.OutdatedLibrary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an outdated library.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.OutdatedLibrary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.OutdatedLibrary) com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder() @@ -513,15 +467,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; } @java.lang.Override @@ -556,8 +511,7 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.OutdatedLibrary buildPartial() { - com.google.cloud.websecurityscanner.v1.OutdatedLibrary result = - new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(this); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(this); int from_bitField0_ = bitField0_; result.libraryName_ = libraryName_; result.version_ = version_; @@ -574,39 +528,38 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.OutdatedLibrary) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.OutdatedLibrary) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.OutdatedLibrary)other); } else { super.mergeFrom(other); return this; @@ -614,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.OutdatedLibrary other) { - if (other == com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) return this; if (!other.getLibraryName().isEmpty()) { libraryName_ = other.libraryName_; onChanged(); @@ -653,8 +605,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,25 +614,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object libraryName_ = ""; /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The libraryName. */ public java.lang.String getLibraryName() { java.lang.Object ref = libraryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; @@ -690,21 +638,20 @@ public java.lang.String getLibraryName() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -712,61 +659,54 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryName(java.lang.String value) { + public Builder setLibraryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + libraryName_ = value; onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return This builder for chaining. */ public Builder clearLibraryName() { - + libraryName_ = getDefaultInstance().getLibraryName(); onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The bytes for libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { + public Builder setLibraryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + libraryName_ = value; onChanged(); return this; @@ -774,20 +714,18 @@ public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -796,21 +734,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -818,112 +755,95 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLearnMoreUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_.getUnmodifiableView(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -931,90 +851,80 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index to set the value at. * @param value The learnMoreUrls to set. * @return This builder for chaining. */ - public Builder setLearnMoreUrls(int index, java.lang.String value) { + public Builder setLearnMoreUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrls(java.lang.String value) { + public Builder addLearnMoreUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param values The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addAllLearnMoreUrls(java.lang.Iterable values) { + public Builder addAllLearnMoreUrls( + java.lang.Iterable values) { ensureLearnMoreUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, learnMoreUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, learnMoreUrls_); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return This builder for chaining. */ public Builder clearLearnMoreUrls() { @@ -1024,30 +934,28 @@ public Builder clearLearnMoreUrls() { return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The bytes of the learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addLearnMoreUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1057,12 +965,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.OutdatedLibrary) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.OutdatedLibrary) private static final com.google.cloud.websecurityscanner.v1.OutdatedLibrary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(); } @@ -1071,16 +979,16 @@ public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutdatedLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutdatedLibrary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutdatedLibrary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1095,4 +1003,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java index 1cf40c09..cd49366c 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java @@ -1,126 +1,90 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface OutdatedLibraryOrBuilder - extends +public interface OutdatedLibraryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.OutdatedLibrary) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ java.lang.String getLibraryName(); /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - com.google.protobuf.ByteString getLibraryNameBytes(); + com.google.protobuf.ByteString + getLibraryNameBytes(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - java.util.List getLearnMoreUrlsList(); + java.util.List + getLearnMoreUrlsList(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ int getLearnMoreUrlsCount(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ java.lang.String getLearnMoreUrls(int index); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index); + com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java index a7d9a82a..106aff88 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_config.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A ScanConfig resource contains the configurations to launch a scan.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig} */ -public final class ScanConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScanConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig) ScanConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScanConfig.newBuilder() to construct. private ScanConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScanConfig() { name_ = ""; displayName_ = ""; @@ -49,15 +31,16 @@ private ScanConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScanConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ScanConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,118 +60,107 @@ private ScanConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + displayName_ = s; + break; + } + case 24: { + + maxQps_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + startingUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 24: - { - maxQps_ = input.readInt32(); - break; + startingUrls_.add(s); + break; + } + case 42: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder subBuilder = null; + if (authentication_ != null) { + subBuilder = authentication_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - startingUrls_.add(s); - break; + authentication_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authentication_); + authentication_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder subBuilder = - null; - if (authentication_ != null) { - subBuilder = authentication_.toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authentication_); - authentication_ = subBuilder.buildPartial(); - } - break; - } - case 48: - { - int rawValue = input.readEnum(); + break; + } + case 48: { + int rawValue = input.readEnum(); - userAgent_ = rawValue; - break; + userAgent_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - blacklistPatterns_.add(s); - break; + blacklistPatterns_.add(s); + break; + } + case 66: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder subBuilder = null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); } - case 66: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder subBuilder = null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - - break; + schedule_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); } - case 80: - { - int rawValue = input.readEnum(); - exportToSecurityCommandCenter_ = rawValue; - break; - } - case 96: - { - int rawValue = input.readEnum(); + break; + } + case 80: { + int rawValue = input.readEnum(); - riskLevel_ = rawValue; - break; - } - case 104: - { - managedScan_ = input.readBool(); - break; - } - case 112: - { - staticIpScan_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + exportToSecurityCommandCenter_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + riskLevel_ = rawValue; + break; + } + case 104: { + + managedScan_ = input.readBool(); + break; + } + case 112: { + + staticIpScan_ = input.readBool(); + break; + } + case 120: { + + ignoreHttpStatusErrors_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -196,7 +168,8 @@ private ScanConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { startingUrls_ = startingUrls_.getUnmodifiableView(); @@ -208,35 +181,29 @@ private ScanConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); } /** - * - * *
    * Type of user agents used for scanning.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfig.UserAgent} */ - public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { + public enum UserAgent + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -245,8 +212,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ USER_AGENT_UNSPECIFIED(0), /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -255,8 +220,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_LINUX(1), /** - * - * *
      * Chrome on Android.
      * 
@@ -265,8 +228,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_ANDROID(2), /** - * - * *
      * Safari on IPhone.
      * 
@@ -278,8 +239,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -288,8 +247,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -298,8 +255,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_LINUX_VALUE = 1; /** - * - * *
      * Chrome on Android.
      * 
@@ -308,8 +263,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_ANDROID_VALUE = 2; /** - * - * *
      * Safari on IPhone.
      * 
@@ -318,6 +271,7 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SAFARI_IPHONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -342,53 +296,50 @@ public static UserAgent valueOf(int value) { */ public static UserAgent forNumber(int value) { switch (value) { - case 0: - return USER_AGENT_UNSPECIFIED; - case 1: - return CHROME_LINUX; - case 2: - return CHROME_ANDROID; - case 3: - return SAFARI_IPHONE; - default: - return null; + case 0: return USER_AGENT_UNSPECIFIED; + case 1: return CHROME_LINUX; + case 2: return CHROME_ANDROID; + case 3: return SAFARI_IPHONE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserAgent> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserAgent findValueByNumber(int number) { + return UserAgent.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UserAgent findValueByNumber(int number) { - return UserAgent.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor().getEnumTypes().get(0); } private static final UserAgent[] VALUES = values(); - public static UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UserAgent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -406,8 +357,6 @@ private UserAgent(int value) { } /** - * - * *
    * Scan risk levels supported by Web Security Scanner. LOW impact
    * scanning will minimize requests with the potential to modify data. To
@@ -416,10 +365,9 @@ private UserAgent(int value) {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel}
    */
-  public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum {
+  public enum RiskLevel
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Use default, which is NORMAL.
      * 
@@ -428,8 +376,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ RISK_LEVEL_UNSPECIFIED(0), /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -438,8 +384,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ NORMAL(1), /** - * - * *
      * Lower impact scanning
      * 
@@ -451,8 +395,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Use default, which is NORMAL.
      * 
@@ -461,8 +403,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -471,8 +411,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NORMAL_VALUE = 1; /** - * - * *
      * Lower impact scanning
      * 
@@ -481,6 +419,7 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOW_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -505,51 +444,49 @@ public static RiskLevel valueOf(int value) { */ public static RiskLevel forNumber(int value) { switch (value) { - case 0: - return RISK_LEVEL_UNSPECIFIED; - case 1: - return NORMAL; - case 2: - return LOW; - default: - return null; + case 0: return RISK_LEVEL_UNSPECIFIED; + case 1: return NORMAL; + case 2: return LOW; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + RiskLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RiskLevel findValueByNumber(int number) { + return RiskLevel.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RiskLevel findValueByNumber(int number) { - return RiskLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor().getEnumTypes().get(1); } private static final RiskLevel[] VALUES = values(); - public static RiskLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RiskLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -567,20 +504,16 @@ private RiskLevel(int value) { } /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * Protobuf enum {@code - * google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter} + * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter} */ - public enum ExportToSecurityCommandCenter implements com.google.protobuf.ProtocolMessageEnum { + public enum ExportToSecurityCommandCenter + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -589,8 +522,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED(0), /** - * - * *
      * Export results of this scan to Security Command Center.
      * 
@@ -599,8 +530,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ ENABLED(1), /** - * - * *
      * Do not export results of this scan to Security Command Center.
      * 
@@ -612,8 +541,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco ; /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -622,8 +549,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Export results of this scan to Security Command Center.
      * 
@@ -632,8 +557,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * Do not export results of this scan to Security Command Center.
      * 
@@ -642,6 +565,7 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -666,14 +590,10 @@ public static ExportToSecurityCommandCenter valueOf(int value) { */ public static ExportToSecurityCommandCenter forNumber(int value) { switch (value) { - case 0: - return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; - case 1: - return ENABLED; - case 2: - return DISABLED; - default: - return null; + case 0: return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; + case 1: return ENABLED; + case 2: return DISABLED; + default: return null; } } @@ -681,31 +601,29 @@ public static ExportToSecurityCommandCenter forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExportToSecurityCommandCenter> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExportToSecurityCommandCenter findValueByNumber(int number) { + return ExportToSecurityCommandCenter.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExportToSecurityCommandCenter findValueByNumber(int number) { - return ExportToSecurityCommandCenter.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor() - .getEnumTypes() - .get(2); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor().getEnumTypes().get(2); } private static final ExportToSecurityCommandCenter[] VALUES = values(); @@ -713,7 +631,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ExportToSecurityCommandCenter valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -730,175 +649,128 @@ private ExportToSecurityCommandCenter(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter) } - public interface AuthenticationOrBuilder - extends + public interface AuthenticationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ - boolean hasGoogleAccount(); + @java.lang.Deprecated boolean hasGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getGoogleAccount(); + @java.lang.Deprecated com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder(); + @java.lang.Deprecated com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ boolean hasCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getCustomAccount(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder(); /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return Whether the iapCredential field is set. */ boolean hasIapCredential(); /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return The iapCredential. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getIapCredential(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getIapCredential(); /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder - getIapCredentialOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder getIapCredentialOrBuilder(); - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.AuthenticationCase - getAuthenticationCase(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); } /** - * - * *
    * Scan authentication configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication} */ - public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Authentication extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) AuthenticationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Authentication() {} + private Authentication() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Authentication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Authentication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -917,94 +789,55 @@ private Authentication( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; + case 10: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder subBuilder = null; + if (authenticationCase_ == 1) { + subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_).toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 2; - break; + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_); + authentication_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder - subBuilder = null; - if (authenticationCase_ == 4) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 4; - break; + authenticationCase_ = 1; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder subBuilder = null; + if (authenticationCase_ == 2) { + subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_); + authentication_ = subBuilder.buildPartial(); } + authenticationCase_ = 2; + break; + } + case 34: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder subBuilder = null; + if (authenticationCase_ == 4) { + subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_).toBuilder(); + } + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1012,105 +845,88 @@ private Authentication( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); } - public interface GoogleAccountOrBuilder - extends + @java.lang.Deprecated public interface GoogleAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } /** - * - * *
      * Describes authentication configuration that uses a Google account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} */ - public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 - implements + @java.lang.Deprecated public static final class GoogleAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) GoogleAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GoogleAccount.newBuilder() to construct. private GoogleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GoogleAccount() { username_ = ""; password_ = ""; @@ -1118,15 +934,16 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GoogleAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GoogleAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1145,27 +962,25 @@ private GoogleAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1173,42 +988,34 @@ private GoogleAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -1217,29 +1024,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1250,15 +1057,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The password. */ @java.lang.Override @@ -1267,30 +1071,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1299,7 +1103,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1311,7 +1114,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -1341,18 +1145,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1373,104 +1176,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1480,52 +1267,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a Google account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1537,23 +1316,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = - buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1561,11 +1336,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount( - this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -1576,56 +1348,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -1649,14 +1411,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1668,20 +1427,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1690,21 +1447,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1712,61 +1468,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1774,21 +1523,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1797,22 +1544,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1820,69 +1566,61 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1895,34 +1633,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1934,114 +1668,94 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomAccountOrBuilder - extends + public interface CustomAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; - * * @return The loginUrl. */ java.lang.String getLoginUrl(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; - * * @return The bytes for loginUrl. */ - com.google.protobuf.ByteString getLoginUrlBytes(); + com.google.protobuf.ByteString + getLoginUrlBytes(); } /** - * - * *
      * Describes authentication configuration that uses a custom account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} */ - public static final class CustomAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CustomAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) CustomAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAccount.newBuilder() to construct. private CustomAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomAccount() { username_ = ""; password_ = ""; @@ -2050,15 +1764,16 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CustomAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2077,34 +1792,31 @@ private CustomAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - loginUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + loginUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2112,42 +1824,34 @@ private CustomAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -2156,29 +1860,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2189,15 +1893,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The password. */ @java.lang.Override @@ -2206,30 +1907,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2240,14 +1941,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int LOGIN_URL_FIELD_NUMBER = 3; private volatile java.lang.Object loginUrl_; /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; - * * @return The loginUrl. */ @java.lang.Override @@ -2256,29 +1954,29 @@ public java.lang.String getLoginUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; } } /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; - * * @return The bytes for loginUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2287,7 +1985,6 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2299,7 +1996,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2335,19 +2033,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getLoginUrl().equals(other.getLoginUrl())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getLoginUrl() + .equals(other.getLoginUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2370,104 +2068,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2477,52 +2159,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a custom account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2536,23 +2210,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = - buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2560,11 +2230,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount( - this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount(this); result.username_ = username_; result.password_ = password_; result.loginUrl_ = loginUrl_; @@ -2576,56 +2243,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -2653,14 +2310,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2672,20 +2326,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2694,21 +2346,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2716,61 +2367,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2778,21 +2422,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2801,22 +2443,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2824,64 +2465,57 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -2889,20 +2523,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object loginUrl_ = ""; /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @return The loginUrl. */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; @@ -2911,21 +2543,20 @@ public java.lang.String getLoginUrl() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @return The bytes for loginUrl. */ - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2933,66 +2564,58 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @param value The loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrl(java.lang.String value) { + public Builder setLoginUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + loginUrl_ = value; onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @return This builder for chaining. */ public Builder clearLoginUrl() { - + loginUrl_ = getDefaultInstance().getLoginUrl(); onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @param value The bytes for loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { + public Builder setLoginUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loginUrl_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3005,34 +2628,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3044,102 +2663,79 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IapCredentialOrBuilder - extends + public interface IapCredentialOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return Whether the iapTestServiceAccountInfo field is set. */ boolean hasIapTestServiceAccountInfo(); /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return The iapTestServiceAccountInfo. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getIapTestServiceAccountInfo(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getIapTestServiceAccountInfo(); /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder - getIapTestServiceAccountInfoOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder getIapTestServiceAccountInfoOrBuilder(); - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapCredentialsCase - getIapCredentialsCase(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapCredentialsCase getIapCredentialsCase(); } /** - * - * *
      * Describes authentication configuration for Identity-Aware-Proxy (IAP).
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} */ - public static final class IapCredential extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IapCredential extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) IapCredentialOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IapCredential.newBuilder() to construct. private IapCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private IapCredential() {} + private IapCredential() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IapCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IapCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3158,40 +2754,27 @@ private IapCredential( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder - subBuilder = null; - if (iapCredentialsCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo) - iapCredentials_) - .toBuilder(); - } - iapCredentials_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo) - iapCredentials_); - iapCredentials_ = subBuilder.buildPartial(); - } - iapCredentialsCase_ = 1; - break; + case 10: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder subBuilder = null; + if (iapCredentialsCase_ == 1) { + subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + iapCredentials_ = + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_); + iapCredentials_ = subBuilder.buildPartial(); + } + iapCredentialsCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3199,103 +2782,85 @@ private IapCredential( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder.class); } - public interface IapTestServiceAccountInfoOrBuilder - extends + public interface IapTestServiceAccountInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The targetAudienceClientId. */ java.lang.String getTargetAudienceClientId(); /** - * - * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for targetAudienceClientId. */ - com.google.protobuf.ByteString getTargetAudienceClientIdBytes(); + com.google.protobuf.ByteString + getTargetAudienceClientIdBytes(); } /** - * - * *
        * Describes authentication configuration when Web-Security-Scanner
        * service account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} */ - public static final class IapTestServiceAccountInfo - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IapTestServiceAccountInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) IapTestServiceAccountInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IapTestServiceAccountInfo.newBuilder() to construct. - private IapTestServiceAccountInfo( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IapTestServiceAccountInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IapTestServiceAccountInfo() { targetAudienceClientId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IapTestServiceAccountInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IapTestServiceAccountInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3314,20 +2879,19 @@ private IapTestServiceAccountInfo( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - targetAudienceClientId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetAudienceClientId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3335,44 +2899,35 @@ private IapTestServiceAccountInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder.class); } public static final int TARGET_AUDIENCE_CLIENT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object targetAudienceClientId_; /** - * - * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The targetAudienceClientId. */ @java.lang.Override @@ -3381,31 +2936,30 @@ public java.lang.String getTargetAudienceClientId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetAudienceClientId_ = s; return s; } } /** - * - * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for targetAudienceClientId. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { + public com.google.protobuf.ByteString + getTargetAudienceClientIdBytes() { java.lang.Object ref = targetAudienceClientId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetAudienceClientId_ = b; return b; } else { @@ -3414,7 +2968,6 @@ public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3427,7 +2980,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetAudienceClientId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetAudienceClientId_); } @@ -3441,9 +2994,7 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetAudienceClientId_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 1, targetAudienceClientId_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetAudienceClientId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3453,22 +3004,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) obj; - if (!getTargetAudienceClientId().equals(other.getTargetAudienceClientId())) return false; + if (!getTargetAudienceClientId() + .equals(other.getTargetAudienceClientId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3487,119 +3031,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3609,54 +3122,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Describes authentication configuration when Web-Security-Scanner
          * service account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3666,26 +3170,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3693,14 +3190,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo(this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo(this); result.targetAudienceClientId_ = targetAudienceClientId_; onBuilt(); return result; @@ -3710,60 +3201,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance()) return this; if (!other.getTargetAudienceClientId().isEmpty()) { targetAudienceClientId_ = other.targetAudienceClientId_; onChanged(); @@ -3783,16 +3260,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3804,22 +3276,19 @@ public Builder mergeFrom( private java.lang.Object targetAudienceClientId_ = ""; /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The targetAudienceClientId. */ public java.lang.String getTargetAudienceClientId() { java.lang.Object ref = targetAudienceClientId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetAudienceClientId_ = s; return s; @@ -3828,23 +3297,21 @@ public java.lang.String getTargetAudienceClientId() { } } /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for targetAudienceClientId. */ - public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { + public com.google.protobuf.ByteString + getTargetAudienceClientIdBytes() { java.lang.Object ref = targetAudienceClientId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetAudienceClientId_ = b; return b; } else { @@ -3852,72 +3319,61 @@ public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { } } /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetAudienceClientId to set. * @return This builder for chaining. */ - public Builder setTargetAudienceClientId(java.lang.String value) { + public Builder setTargetAudienceClientId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetAudienceClientId_ = value; onChanged(); return this; } /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetAudienceClientId() { - + targetAudienceClientId_ = getDefaultInstance().getTargetAudienceClientId(); onChanged(); return this; } /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for targetAudienceClientId to set. * @return This builder for chaining. */ - public Builder setTargetAudienceClientIdBytes(com.google.protobuf.ByteString value) { + public Builder setTargetAudienceClientIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetAudienceClientId_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3930,36 +3386,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IapTestServiceAccountInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IapTestServiceAccountInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IapTestServiceAccountInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IapTestServiceAccountInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3971,24 +3421,20 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int iapCredentialsCase_ = 0; private java.lang.Object iapCredentials_; - public enum IapCredentialsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IAP_TEST_SERVICE_ACCOUNT_INFO(1), IAPCREDENTIALS_NOT_SET(0); private final int value; - private IapCredentialsCase(int value) { this.value = value; } @@ -4004,37 +3450,30 @@ public static IapCredentialsCase valueOf(int value) { public static IapCredentialsCase forNumber(int value) { switch (value) { - case 1: - return IAP_TEST_SERVICE_ACCOUNT_INFO; - case 0: - return IAPCREDENTIALS_NOT_SET; - default: - return null; + case 1: return IAP_TEST_SERVICE_ACCOUNT_INFO; + case 0: return IAPCREDENTIALS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public IapCredentialsCase getIapCredentialsCase() { - return IapCredentialsCase.forNumber(iapCredentialsCase_); + public IapCredentialsCase + getIapCredentialsCase() { + return IapCredentialsCase.forNumber( + iapCredentialsCase_); } public static final int IAP_TEST_SERVICE_ACCOUNT_INFO_FIELD_NUMBER = 1; /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return Whether the iapTestServiceAccountInfo field is set. */ @java.lang.Override @@ -4042,58 +3481,38 @@ public boolean hasIapTestServiceAccountInfo() { return iapCredentialsCase_ == 1; } /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return The iapTestServiceAccountInfo. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getIapTestServiceAccountInfo() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getIapTestServiceAccountInfo() { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder - getIapTestServiceAccountInfoOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder getIapTestServiceAccountInfoOrBuilder() { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4105,13 +3524,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (iapCredentialsCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_); + output.writeMessage(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_); } unknownFields.writeTo(output); } @@ -4123,12 +3539,8 @@ public int getSerializedSize() { size = 0; if (iapCredentialsCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4138,21 +3550,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) obj; if (!getIapCredentialsCase().equals(other.getIapCredentialsCase())) return false; switch (iapCredentialsCase_) { case 1: - if (!getIapTestServiceAccountInfo().equals(other.getIapTestServiceAccountInfo())) - return false; + if (!getIapTestServiceAccountInfo() + .equals(other.getIapTestServiceAccountInfo())) return false; break; case 0: default: @@ -4181,104 +3590,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4288,52 +3681,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration for Identity-Aware-Proxy (IAP).
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4343,23 +3728,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = - buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4367,11 +3748,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential( - this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential(this); if (iapCredentialsCase_ == 1) { if (iapTestServiceAccountInfoBuilder_ == null) { result.iapCredentials_ = iapCredentials_; @@ -4388,66 +3766,54 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance()) return this; switch (other.getIapCredentialsCase()) { - case IAP_TEST_SERVICE_ACCOUNT_INFO: - { - mergeIapTestServiceAccountInfo(other.getIapTestServiceAccountInfo()); - break; - } - case IAPCREDENTIALS_NOT_SET: - { - break; - } + case IAP_TEST_SERVICE_ACCOUNT_INFO: { + mergeIapTestServiceAccountInfo(other.getIapTestServiceAccountInfo()); + break; + } + case IAPCREDENTIALS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -4464,14 +3830,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4480,12 +3843,12 @@ public Builder mergeFrom( } return this; } - private int iapCredentialsCase_ = 0; private java.lang.Object iapCredentials_; - - public IapCredentialsCase getIapCredentialsCase() { - return IapCredentialsCase.forNumber(iapCredentialsCase_); + public IapCredentialsCase + getIapCredentialsCase() { + return IapCredentialsCase.forNumber( + iapCredentialsCase_); } public Builder clearIapCredentials() { @@ -4495,26 +3858,16 @@ public Builder clearIapCredentials() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder> - iapTestServiceAccountInfoBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder> iapTestServiceAccountInfoBuilder_; /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return Whether the iapTestServiceAccountInfo field is set. */ @java.lang.Override @@ -4522,55 +3875,37 @@ public boolean hasIapTestServiceAccountInfo() { return iapCredentialsCase_ == 1; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return The iapTestServiceAccountInfo. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getIapTestServiceAccountInfo() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getIapTestServiceAccountInfo() { if (iapTestServiceAccountInfoBuilder_ == null) { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } else { if (iapCredentialsCase_ == 1) { return iapTestServiceAccountInfoBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ - public Builder setIapTestServiceAccountInfo( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - value) { + public Builder setIapTestServiceAccountInfo(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo value) { if (iapTestServiceAccountInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4584,21 +3919,15 @@ public Builder setIapTestServiceAccountInfo( return this; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ public Builder setIapTestServiceAccountInfo( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder builderForValue) { if (iapTestServiceAccountInfoBuilder_ == null) { iapCredentials_ = builderForValue.build(); onChanged(); @@ -4609,34 +3938,19 @@ public Builder setIapTestServiceAccountInfo( return this; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ - public Builder mergeIapTestServiceAccountInfo( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - value) { + public Builder mergeIapTestServiceAccountInfo(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo value) { if (iapTestServiceAccountInfoBuilder_ == null) { - if (iapCredentialsCase_ == 1 - && iapCredentials_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo.getDefaultInstance()) { - iapCredentials_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.newBuilder( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo) - iapCredentials_) - .mergeFrom(value) - .buildPartial(); + if (iapCredentialsCase_ == 1 && + iapCredentials_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance()) { + iapCredentials_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_) + .mergeFrom(value).buildPartial(); } else { iapCredentials_ = value; } @@ -4652,16 +3966,12 @@ public Builder mergeIapTestServiceAccountInfo( return this; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ public Builder clearIapTestServiceAccountInfo() { if (iapTestServiceAccountInfoBuilder_ == null) { @@ -4680,97 +3990,61 @@ public Builder clearIapTestServiceAccountInfo() { return this; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder - getIapTestServiceAccountInfoBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder getIapTestServiceAccountInfoBuilder() { return getIapTestServiceAccountInfoFieldBuilder().getBuilder(); } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder - getIapTestServiceAccountInfoOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder getIapTestServiceAccountInfoOrBuilder() { if ((iapCredentialsCase_ == 1) && (iapTestServiceAccountInfoBuilder_ != null)) { return iapTestServiceAccountInfoBuilder_.getMessageOrBuilder(); } else { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder> getIapTestServiceAccountInfoFieldBuilder() { if (iapTestServiceAccountInfoBuilder_ == null) { if (!(iapCredentialsCase_ == 1)) { - iapCredentials_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + iapCredentials_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } - iapTestServiceAccountInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_, + iapTestServiceAccountInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_, getParentForChildren(), isClean()); iapCredentials_ = null; } iapCredentialsCase_ = 1; - onChanged(); - ; + onChanged();; return iapTestServiceAccountInfoBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4783,34 +4057,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IapCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IapCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IapCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IapCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4822,25 +4092,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int authenticationCase_ = 0; private java.lang.Object authentication_; - public enum AuthenticationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GOOGLE_ACCOUNT(1), + @java.lang.Deprecated GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), IAP_CREDENTIAL(4), AUTHENTICATION_NOT_SET(0); private final int value; - private AuthenticationCase(int value) { this.value = value; } @@ -4856,103 +4123,78 @@ public static AuthenticationCase valueOf(int value) { public static AuthenticationCase forNumber(int value) { switch (value) { - case 1: - return GOOGLE_ACCOUNT; - case 2: - return CUSTOM_ACCOUNT; - case 4: - return IAP_CREDENTIAL; - case 0: - return AUTHENTICATION_NOT_SET; - default: - return null; + case 1: return GOOGLE_ACCOUNT; + case 2: return CUSTOM_ACCOUNT; + case 4: return IAP_CREDENTIAL; + case 0: return AUTHENTICATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public static final int GOOGLE_ACCOUNT_FIELD_NUMBER = 1; /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override - public boolean hasGoogleAccount() { + @java.lang.Deprecated public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } public static final int CUSTOM_ACCOUNT_FIELD_NUMBER = 2; /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -4960,62 +4202,42 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } public static final int IAP_CREDENTIAL_FIELD_NUMBER = 4; /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return Whether the iapCredential field is set. */ @java.lang.Override @@ -5023,52 +4245,36 @@ public boolean hasIapCredential() { return authenticationCase_ == 4; } /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return The iapCredential. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getIapCredential() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getIapCredential() { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder - getIapCredentialOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder getIapCredentialOrBuilder() { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5080,24 +4286,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (authenticationCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_); + output.writeMessage(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_); + output.writeMessage(2, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_); } if (authenticationCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_); + output.writeMessage(4, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); } unknownFields.writeTo(output); } @@ -5109,25 +4307,16 @@ public int getSerializedSize() { size = 0; if (authenticationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_); } if (authenticationCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5137,24 +4326,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) obj; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 1: - if (!getGoogleAccount().equals(other.getGoogleAccount())) return false; + if (!getGoogleAccount() + .equals(other.getGoogleAccount())) return false; break; case 2: - if (!getCustomAccount().equals(other.getCustomAccount())) return false; + if (!getCustomAccount() + .equals(other.getCustomAccount())) return false; break; case 4: - if (!getIapCredential().equals(other.getIapCredential())) return false; + if (!getIapCredential() + .equals(other.getIapCredential())) return false; break; case 0: default: @@ -5192,95 +4383,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5290,49 +4473,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan authentication configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5342,16 +4520,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance(); } @java.lang.Override @@ -5365,8 +4541,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication build() @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(this); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(this); if (authenticationCase_ == 1) { if (googleAccountBuilder_ == null) { result.authentication_ = authentication_; @@ -5397,73 +4572,62 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance()) return this; switch (other.getAuthenticationCase()) { - case GOOGLE_ACCOUNT: - { - mergeGoogleAccount(other.getGoogleAccount()); - break; - } - case CUSTOM_ACCOUNT: - { - mergeCustomAccount(other.getCustomAccount()); - break; - } - case IAP_CREDENTIAL: - { - mergeIapCredential(other.getIapCredential()); - break; - } - case AUTHENTICATION_NOT_SET: - { - break; - } + case GOOGLE_ACCOUNT: { + mergeGoogleAccount(other.getGoogleAccount()); + break; + } + case CUSTOM_ACCOUNT: { + mergeCustomAccount(other.getCustomAccount()); + break; + } + case IAP_CREDENTIAL: { + mergeIapCredential(other.getIapCredential()); + break; + } + case AUTHENTICATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -5484,9 +4648,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5495,12 +4657,12 @@ public Builder mergeFrom( } return this; } - private int authenticationCase_ = 0; private java.lang.Object authentication_; - - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public Builder clearAuthentication() { @@ -5510,74 +4672,55 @@ public Builder clearAuthentication() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccountOrBuilder> - googleAccountBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder> googleAccountBuilder_; /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override - public boolean hasGoogleAccount() { + @java.lang.Deprecated public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } else { if (authenticationCase_ == 1) { return googleAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + @java.lang.Deprecated public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5591,19 +4734,14 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder - builderForValue) { + @java.lang.Deprecated public Builder setGoogleAccount( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -5614,31 +4752,18 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - public Builder mergeGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + @java.lang.Deprecated public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { - if (authenticationCase_ == 1 - && authentication_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 1 && + authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -5654,17 +4779,13 @@ public Builder mergeGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - public Builder clearGoogleAccount() { + @java.lang.Deprecated public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { authenticationCase_ = 0; @@ -5681,106 +4802,67 @@ public Builder clearGoogleAccount() { return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder - getGoogleAccountBuilder() { + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { return googleAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccountOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder> getGoogleAccountFieldBuilder() { if (googleAccountBuilder_ == null) { if (!(authenticationCase_ == 1)) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); - } - googleAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_, + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + } + googleAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 1; - onChanged(); - ; + onChanged();; return googleAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccountOrBuilder> - customAccountBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder> customAccountBuilder_; /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -5788,49 +4870,35 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (customAccountBuilder_ == null) { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } else { if (authenticationCase_ == 2) { return customAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { + public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5844,19 +4912,14 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder builderForValue) { if (customAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -5867,31 +4930,18 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder mergeCustomAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { + public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { - if (authenticationCase_ == 2 - && authentication_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 2 && + authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -5907,15 +4957,11 @@ public Builder mergeCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder clearCustomAccount() { if (customAccountBuilder_ == null) { @@ -5934,106 +4980,67 @@ public Builder clearCustomAccount() { return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder - getCustomAccountBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder getCustomAccountBuilder() { return getCustomAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if ((authenticationCase_ == 2) && (customAccountBuilder_ != null)) { return customAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccountOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder> getCustomAccountFieldBuilder() { if (customAccountBuilder_ == null) { if (!(authenticationCase_ == 2)) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); - } - customAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_, + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + } + customAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 2; - onChanged(); - ; + onChanged();; return customAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredentialOrBuilder> - iapCredentialBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder> iapCredentialBuilder_; /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return Whether the iapCredential field is set. */ @java.lang.Override @@ -6041,49 +5048,35 @@ public boolean hasIapCredential() { return authenticationCase_ == 4; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return The iapCredential. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getIapCredential() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getIapCredential() { if (iapCredentialBuilder_ == null) { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } else { if (authenticationCase_ == 4) { return iapCredentialBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ - public Builder setIapCredential( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { + public Builder setIapCredential(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { if (iapCredentialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6097,19 +5090,14 @@ public Builder setIapCredential( return this; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ public Builder setIapCredential( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder builderForValue) { if (iapCredentialBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -6120,31 +5108,18 @@ public Builder setIapCredential( return this; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ - public Builder mergeIapCredential( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { + public Builder mergeIapCredential(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { if (iapCredentialBuilder_ == null) { - if (authenticationCase_ == 4 - && authentication_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .newBuilder( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 4 && + authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -6160,15 +5135,11 @@ public Builder mergeIapCredential( return this; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ public Builder clearIapCredential() { if (iapCredentialBuilder_ == null) { @@ -6187,88 +5158,58 @@ public Builder clearIapCredential() { return this; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder - getIapCredentialBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder getIapCredentialBuilder() { return getIapCredentialFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder - getIapCredentialOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder getIapCredentialOrBuilder() { if ((authenticationCase_ == 4) && (iapCredentialBuilder_ != null)) { return iapCredentialBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredentialOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder> getIapCredentialFieldBuilder() { if (iapCredentialBuilder_ == null) { if (!(authenticationCase_ == 4)) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); - } - iapCredentialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredentialOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_, + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); + } + iapCredentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 4; - onChanged(); - ; + onChanged();; return iapCredentialBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6281,32 +5222,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6318,20 +5257,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ScheduleOrBuilder - extends + public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6340,13 +5276,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6355,13 +5288,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6374,50 +5304,46 @@ public interface ScheduleOrBuilder
     com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2; - * * @return The intervalDurationDays. */ int getIntervalDurationDays(); } /** - * - * *
    * Scan schedule configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Schedule} */ - public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) ScheduleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Schedule() {} + private Schedule() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6436,33 +5362,31 @@ private Schedule( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); } - case 16: - { - intervalDurationDays_ = input.readInt32(); - break; + scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + intervalDurationDays_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6470,33 +5394,29 @@ private Schedule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); } public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp scheduleTime_; /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6505,7 +5425,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -6513,8 +5432,6 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6523,18 +5440,13 @@ public boolean hasScheduleTime() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6552,14 +5464,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_;
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -6568,7 +5477,6 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6580,7 +5488,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scheduleTime_ != null) { output.writeMessage(1, getScheduleTime()); } @@ -6597,10 +5506,12 @@ public int getSerializedSize() { size = 0; if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getScheduleTime()); } if (intervalDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, intervalDurationDays_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6610,19 +5521,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) obj; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; + if (!getScheduleTime() + .equals(other.getScheduleTime())) return false; } - if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; + if (getIntervalDurationDays() + != other.getIntervalDurationDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6646,94 +5558,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6743,32 +5648,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan schedule configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Schedule} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder() @@ -6776,15 +5676,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6800,14 +5701,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance(); } @@ -6822,8 +5722,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(this); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(this); if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; } else { @@ -6838,41 +5737,38 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule)other); } else { super.mergeFrom(other); return this; @@ -6880,9 +5776,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance()) return this; if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } @@ -6908,8 +5802,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6921,13 +5814,8 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -6936,15 +5824,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -6953,21 +5838,16 @@ public boolean hasScheduleTime() {
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -6991,8 +5871,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7002,7 +5880,8 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp schedule_time = 1;
        */
-      public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setScheduleTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (scheduleTimeBuilder_ == null) {
           scheduleTime_ = builderForValue.build();
           onChanged();
@@ -7013,8 +5892,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7028,9 +5905,7 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
           if (scheduleTime_ != null) {
             scheduleTime_ =
-                com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial();
           } else {
             scheduleTime_ = value;
           }
@@ -7042,8 +5917,6 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7065,8 +5938,6 @@ public Builder clearScheduleTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7077,13 +5948,11 @@ public Builder clearScheduleTime() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
-
+        
         onChanged();
         return getScheduleTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7097,14 +5966,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
         if (scheduleTimeBuilder_ != null) {
           return scheduleTimeBuilder_.getMessageOrBuilder();
         } else {
-          return scheduleTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : scheduleTime_;
+          return scheduleTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
         }
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7115,32 +5981,26 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getScheduleTimeFieldBuilder() {
         if (scheduleTimeBuilder_ == null) {
-          scheduleTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getScheduleTime(), getParentForChildren(), isClean());
+          scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getScheduleTime(),
+                  getParentForChildren(),
+                  isClean());
           scheduleTime_ = null;
         }
         return scheduleTimeBuilder_;
       }
 
-      private int intervalDurationDays_;
+      private int intervalDurationDays_ ;
       /**
-       *
-       *
        * 
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -7148,41 +6008,34 @@ public int getIntervalDurationDays() { return intervalDurationDays_; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; - * * @param value The intervalDurationDays to set. * @return This builder for chaining. */ public Builder setIntervalDurationDays(int value) { - + intervalDurationDays_ = value; onChanged(); return this; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; - * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { - + intervalDurationDays_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7195,13 +6048,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(); } @@ -7210,16 +6062,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7234,13 +6086,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7248,7 +6099,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInst
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -7257,15 +6107,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7273,15 +6122,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7292,14 +6142,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -7308,29 +6155,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -7341,8 +6188,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_; /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -7351,7 +6196,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -7362,42 +6206,34 @@ public int getMaxQps() { public static final int STARTING_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList startingUrls_; /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_; } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -7405,33 +6241,28 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } public static final int AUTHENTICATION_FIELD_NUMBER = 5; private com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication_; /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * * @return Whether the authentication field is set. */ @java.lang.Override @@ -7439,26 +6270,19 @@ public boolean hasAuthentication() { return authentication_ != null; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * * @return The authentication. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthentication() { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
@@ -7467,91 +6291,71 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthe
    * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder
-      getAuthenticationOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() {
     return getAuthentication();
   }
 
   public static final int USER_AGENT_FIELD_NUMBER = 6;
   private int userAgent_;
   /**
-   *
-   *
    * 
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList blacklistPatterns_; /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_; } /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -7559,33 +6363,28 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } public static final int SCHEDULE_FIELD_NUMBER = 8; private com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule_; /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ @java.lang.Override @@ -7593,25 +6392,18 @@ public boolean hasSchedule() { return schedule_ != null; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule() { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -7619,108 +6411,75 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule() * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { return getSchedule(); } public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER = 10; private int exportToSecurityCommandCenter_; /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override - public int getExportToSecurityCommandCenterValue() { + @java.lang.Override public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf( - exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; } public static final int RISK_LEVEL_FIELD_NUMBER = 12; private int riskLevel_; /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override - public int getRiskLevelValue() { + @java.lang.Override public int getRiskLevelValue() { return riskLevel_; } /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED : result; } public static final int MANAGED_SCAN_FIELD_NUMBER = 13; private boolean managedScan_; /** - * - * *
    * Whether the scan config is managed by Web Security Scanner, output
    * only.
    * 
* * bool managed_scan = 13; - * * @return The managedScan. */ @java.lang.Override @@ -7731,15 +6490,12 @@ public boolean getManagedScan() { public static final int STATIC_IP_SCAN_FIELD_NUMBER = 14; private boolean staticIpScan_; /** - * - * *
    * Whether the scan configuration has enabled static IP address scan feature.
    * If enabled, the scanner will access applications from static IP addresses.
    * 
* * bool static_ip_scan = 14; - * * @return The staticIpScan. */ @java.lang.Override @@ -7747,8 +6503,22 @@ public boolean getStaticIpScan() { return staticIpScan_; } - private byte memoizedIsInitialized = -1; + public static final int IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER = 15; + private boolean ignoreHttpStatusErrors_; + /** + *
+   * Whether to keep scanning even if most requests return HTTP error codes.
+   * 
+ * + * bool ignore_http_status_errors = 15; + * @return The ignoreHttpStatusErrors. + */ + @java.lang.Override + public boolean getIgnoreHttpStatusErrors() { + return ignoreHttpStatusErrors_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7760,7 +6530,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -7776,9 +6547,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (authentication_ != null) { output.writeMessage(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { + if (userAgent_ != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { output.writeEnum(6, userAgent_); } for (int i = 0; i < blacklistPatterns_.size(); i++) { @@ -7787,15 +6556,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (schedule_ != null) { output.writeMessage(8, getSchedule()); } - if (exportToSecurityCommandCenter_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED - .getNumber()) { + if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { output.writeEnum(10, exportToSecurityCommandCenter_); } - if (riskLevel_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED - .getNumber()) { + if (riskLevel_ != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(12, riskLevel_); } if (managedScan_ != false) { @@ -7804,6 +6568,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (staticIpScan_ != false) { output.writeBool(14, staticIpScan_); } + if (ignoreHttpStatusErrors_ != false) { + output.writeBool(15, ignoreHttpStatusErrors_); + } unknownFields.writeTo(output); } @@ -7820,7 +6587,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (maxQps_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxQps_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxQps_); } { int dataSize = 0; @@ -7831,12 +6599,12 @@ public int getSerializedSize() { size += 1 * getStartingUrlsList().size(); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthentication()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, userAgent_); + if (userAgent_ != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, userAgent_); } { int dataSize = 0; @@ -7847,25 +6615,28 @@ public int getSerializedSize() { size += 1 * getBlacklistPatternsList().size(); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSchedule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSchedule()); } - if (exportToSecurityCommandCenter_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(10, exportToSecurityCommandCenter_); + if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, exportToSecurityCommandCenter_); } - if (riskLevel_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, riskLevel_); + if (riskLevel_ != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, riskLevel_); } if (managedScan_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, managedScan_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, managedScan_); } if (staticIpScan_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, staticIpScan_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, staticIpScan_); + } + if (ignoreHttpStatusErrors_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, ignoreHttpStatusErrors_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7875,32 +6646,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig other = - (com.google.cloud.websecurityscanner.v1.ScanConfig) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig other = (com.google.cloud.websecurityscanner.v1.ScanConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getMaxQps() != other.getMaxQps()) return false; - if (!getStartingUrlsList().equals(other.getStartingUrlsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getMaxQps() + != other.getMaxQps()) return false; + if (!getStartingUrlsList() + .equals(other.getStartingUrlsList())) return false; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication().equals(other.getAuthentication())) return false; + if (!getAuthentication() + .equals(other.getAuthentication())) return false; } if (userAgent_ != other.userAgent_) return false; - if (!getBlacklistPatternsList().equals(other.getBlacklistPatternsList())) return false; + if (!getBlacklistPatternsList() + .equals(other.getBlacklistPatternsList())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule().equals(other.getSchedule())) return false; + if (!getSchedule() + .equals(other.getSchedule())) return false; } if (exportToSecurityCommandCenter_ != other.exportToSecurityCommandCenter_) return false; if (riskLevel_ != other.riskLevel_) return false; - if (getManagedScan() != other.getManagedScan()) return false; - if (getStaticIpScan() != other.getStaticIpScan()) return false; + if (getManagedScan() + != other.getManagedScan()) return false; + if (getStaticIpScan() + != other.getStaticIpScan()) return false; + if (getIgnoreHttpStatusErrors() + != other.getIgnoreHttpStatusErrors()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7941,135 +6722,131 @@ public int hashCode() { hash = (37 * hash) + RISK_LEVEL_FIELD_NUMBER; hash = (53 * hash) + riskLevel_; hash = (37 * hash) + MANAGED_SCAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagedScan()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getManagedScan()); hash = (37 * hash) + STATIC_IP_SCAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStaticIpScan()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStaticIpScan()); + hash = (37 * hash) + IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreHttpStatusErrors()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanConfig resource contains the configurations to launch a scan.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig) com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder() @@ -8077,15 +6854,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -8121,13 +6899,15 @@ public Builder clear() { staticIpScan_ = false; + ignoreHttpStatusErrors_ = false; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; } @java.lang.Override @@ -8146,8 +6926,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig result = - new com.google.cloud.websecurityscanner.v1.ScanConfig(this); + com.google.cloud.websecurityscanner.v1.ScanConfig result = new com.google.cloud.websecurityscanner.v1.ScanConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -8177,6 +6956,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig buildPartial() { result.riskLevel_ = riskLevel_; result.managedScan_ = managedScan_; result.staticIpScan_ = staticIpScan_; + result.ignoreHttpStatusErrors_ = ignoreHttpStatusErrors_; onBuilt(); return result; } @@ -8185,39 +6965,38 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig)other); } else { super.mergeFrom(other); return this; @@ -8225,8 +7004,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig other) { - if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -8279,6 +7057,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig other if (other.getStaticIpScan() != false) { setStaticIpScan(other.getStaticIpScan()); } + if (other.getIgnoreHttpStatusErrors() != false) { + setIgnoreHttpStatusErrors(other.getIgnoreHttpStatusErrors()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -8298,8 +7079,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8308,13 +7088,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8322,13 +7099,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -8337,8 +7114,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8346,14 +7121,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -8361,8 +7137,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8370,22 +7144,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8393,18 +7165,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8412,16 +7181,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -8429,20 +7198,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -8451,21 +7218,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -8473,70 +7239,61 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int maxQps_; + private int maxQps_ ; /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -8545,7 +7302,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -8553,8 +7309,6 @@ public int getMaxQps() { return maxQps_; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -8563,19 +7317,16 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; - * * @param value The maxQps to set. * @return This builder for chaining. */ public Builder setMaxQps(int value) { - + maxQps_ = value; onChanged(); return this; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -8584,62 +7335,51 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; - * * @return This builder for chaining. */ public Builder clearMaxQps() { - + maxQps_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList startingUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStartingUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -8647,90 +7387,80 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param index The index to set the value at. * @param value The startingUrls to set. * @return This builder for chaining. */ - public Builder setStartingUrls(int index, java.lang.String value) { + public Builder setStartingUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param value The startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrls(java.lang.String value) { + public Builder addStartingUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param values The startingUrls to add. * @return This builder for chaining. */ - public Builder addAllStartingUrls(java.lang.Iterable values) { + public Builder addAllStartingUrls( + java.lang.Iterable values) { ensureStartingUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startingUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, startingUrls_); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @return This builder for chaining. */ public Builder clearStartingUrls() { @@ -8740,22 +7470,20 @@ public Builder clearStartingUrls() { return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param value The bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addStartingUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); @@ -8764,61 +7492,44 @@ public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> - authenticationBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> authenticationBuilder_; /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; * @return The authentication. */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ - public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { + public Builder setAuthentication(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8832,15 +7543,12 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ public Builder setAuthentication( com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder builderForValue) { @@ -8854,25 +7562,18 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ - public Builder mergeAuthentication( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { + public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder( - authentication_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -8884,15 +7585,12 @@ public Builder mergeAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { @@ -8906,66 +7604,51 @@ public Builder clearAuthentication() { return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder - getAuthenticationBuilder() { - + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder getAuthenticationBuilder() { + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_; } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder>( - getAuthentication(), getParentForChildren(), isClean()); + authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder>( + getAuthentication(), + getParentForChildren(), + isClean()); authentication_ = null; } return authenticationBuilder_; @@ -8973,67 +7656,51 @@ public Builder clearAuthentication() { private int userAgent_ = 0; /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @param value The enum numeric value on the wire for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentValue(int value) { - + userAgent_ = value; onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED : result; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @param value The userAgent to set. * @return This builder for chaining. */ @@ -9041,78 +7708,65 @@ public Builder setUserAgent(com.google.cloud.websecurityscanner.v1.ScanConfig.Us if (value == null) { throw new NullPointerException(); } - + userAgent_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBlacklistPatternsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_.getUnmodifiableView(); } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -9120,95 +7774,85 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index to set the value at. * @param value The blacklistPatterns to set. * @return This builder for chaining. */ - public Builder setBlacklistPatterns(int index, java.lang.String value) { + public Builder setBlacklistPatterns( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); onChanged(); return this; } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatterns(java.lang.String value) { + public Builder addBlacklistPatterns( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); return this; } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param values The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addAllBlacklistPatterns(java.lang.Iterable values) { + public Builder addAllBlacklistPatterns( + java.lang.Iterable values) { ensureBlacklistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blacklistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blacklistPatterns_); onChanged(); return this; } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return This builder for chaining. */ public Builder clearBlacklistPatterns() { @@ -9218,23 +7862,21 @@ public Builder clearBlacklistPatterns() { return this; } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { + public Builder addBlacklistPatternsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); @@ -9243,47 +7885,34 @@ public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> - scheduleBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> scheduleBuilder_; /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9304,8 +7933,6 @@ public Builder setSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.Sch return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9324,8 +7951,6 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9336,9 +7961,7 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.S if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder(schedule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); } else { schedule_ = value; } @@ -9350,8 +7973,6 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.S return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9370,8 +7991,6 @@ public Builder clearSchedule() { return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9379,32 +7998,26 @@ public Builder clearSchedule() { * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder getScheduleBuilder() { - + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9412,17 +8025,14 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder getSch * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder>( - getSchedule(), getParentForChildren(), isClean()); + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); schedule_ = null; } return scheduleBuilder_; @@ -9430,111 +8040,78 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder getSch private int exportToSecurityCommandCenter_ = 0; /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override - public int getExportToSecurityCommandCenterValue() { + @java.lang.Override public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @param value The enum numeric value on the wire for exportToSecurityCommandCenter to set. * @return This builder for chaining. */ public Builder setExportToSecurityCommandCenterValue(int value) { - + exportToSecurityCommandCenter_ = value; onChanged(); return this; } /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf( - exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; } /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @param value The exportToSecurityCommandCenter to set. * @return This builder for chaining. */ - public Builder setExportToSecurityCommandCenter( - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter value) { + public Builder setExportToSecurityCommandCenter(com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter value) { if (value == null) { throw new NullPointerException(); } - + exportToSecurityCommandCenter_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return This builder for chaining. */ public Builder clearExportToSecurityCommandCenter() { - + exportToSecurityCommandCenter_ = 0; onChanged(); return this; @@ -9542,67 +8119,51 @@ public Builder clearExportToSecurityCommandCenter() { private int riskLevel_ = 0; /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override - public int getRiskLevelValue() { + @java.lang.Override public int getRiskLevelValue() { return riskLevel_; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @param value The enum numeric value on the wire for riskLevel to set. * @return This builder for chaining. */ public Builder setRiskLevelValue(int value) { - + riskLevel_ = value; onChanged(); return this; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED : result; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @param value The riskLevel to set. * @return This builder for chaining. */ @@ -9610,40 +8171,34 @@ public Builder setRiskLevel(com.google.cloud.websecurityscanner.v1.ScanConfig.Ri if (value == null) { throw new NullPointerException(); } - + riskLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return This builder for chaining. */ public Builder clearRiskLevel() { - + riskLevel_ = 0; onChanged(); return this; } - private boolean managedScan_; + private boolean managedScan_ ; /** - * - * *
      * Whether the scan config is managed by Web Security Scanner, output
      * only.
      * 
* * bool managed_scan = 13; - * * @return The managedScan. */ @java.lang.Override @@ -9651,54 +8206,45 @@ public boolean getManagedScan() { return managedScan_; } /** - * - * *
      * Whether the scan config is managed by Web Security Scanner, output
      * only.
      * 
* * bool managed_scan = 13; - * * @param value The managedScan to set. * @return This builder for chaining. */ public Builder setManagedScan(boolean value) { - + managedScan_ = value; onChanged(); return this; } /** - * - * *
      * Whether the scan config is managed by Web Security Scanner, output
      * only.
      * 
* * bool managed_scan = 13; - * * @return This builder for chaining. */ public Builder clearManagedScan() { - + managedScan_ = false; onChanged(); return this; } - private boolean staticIpScan_; + private boolean staticIpScan_ ; /** - * - * *
      * Whether the scan configuration has enabled static IP address scan feature.
      * If enabled, the scanner will access applications from static IP addresses.
      * 
* * bool static_ip_scan = 14; - * * @return The staticIpScan. */ @java.lang.Override @@ -9706,45 +8252,82 @@ public boolean getStaticIpScan() { return staticIpScan_; } /** - * - * *
      * Whether the scan configuration has enabled static IP address scan feature.
      * If enabled, the scanner will access applications from static IP addresses.
      * 
* * bool static_ip_scan = 14; - * * @param value The staticIpScan to set. * @return This builder for chaining. */ public Builder setStaticIpScan(boolean value) { - + staticIpScan_ = value; onChanged(); return this; } /** - * - * *
      * Whether the scan configuration has enabled static IP address scan feature.
      * If enabled, the scanner will access applications from static IP addresses.
      * 
* * bool static_ip_scan = 14; - * * @return This builder for chaining. */ public Builder clearStaticIpScan() { - + staticIpScan_ = false; onChanged(); return this; } + private boolean ignoreHttpStatusErrors_ ; + /** + *
+     * Whether to keep scanning even if most requests return HTTP error codes.
+     * 
+ * + * bool ignore_http_status_errors = 15; + * @return The ignoreHttpStatusErrors. + */ + @java.lang.Override + public boolean getIgnoreHttpStatusErrors() { + return ignoreHttpStatusErrors_; + } + /** + *
+     * Whether to keep scanning even if most requests return HTTP error codes.
+     * 
+ * + * bool ignore_http_status_errors = 15; + * @param value The ignoreHttpStatusErrors to set. + * @return This builder for chaining. + */ + public Builder setIgnoreHttpStatusErrors(boolean value) { + + ignoreHttpStatusErrors_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether to keep scanning even if most requests return HTTP error codes.
+     * 
+ * + * bool ignore_http_status_errors = 15; + * @return This builder for chaining. + */ + public Builder clearIgnoreHttpStatusErrors() { + + ignoreHttpStatusErrors_ = false; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9754,12 +8337,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig) private static final com.google.cloud.websecurityscanner.v1.ScanConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig(); } @@ -9768,16 +8351,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9792,4 +8375,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java similarity index 75% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java index cbde79d4..68d6d205 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_config_error.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
  * APIs when scan configuration validation fails. It is also reported as part of
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfigError}
  */
-public final class ScanConfigError extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanConfigError extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfigError)
     ScanConfigErrorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanConfigError.newBuilder() to construct.
   private ScanConfigError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanConfigError() {
     code_ = 0;
     fieldName_ = "";
@@ -47,15 +29,16 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanConfigError(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,27 +57,25 @@ private ScanConfigError(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fieldName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            fieldName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,31 +83,27 @@ private ScanConfigError(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.class,
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.class, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -135,10 +112,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfigError.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * There is no error.
      * 
@@ -147,8 +123,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0, 0), /** - * - * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -158,8 +132,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     INTERNAL_ERROR(2, 1),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -169,8 +141,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_API_BACKEND_ERROR(3, 2),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -180,8 +150,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_API_NOT_ACCESSIBLE(4, 3),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -191,8 +159,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -201,8 +167,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CANNOT_USE_GOOGLE_COM_ACCOUNT(6, 6), /** - * - * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -211,8 +175,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CANNOT_USE_OWNER_ACCOUNT(7, 7), /** - * - * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -222,8 +184,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMPUTE_API_BACKEND_ERROR(8, 8),
     /**
-     *
-     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -233,8 +193,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMPUTE_API_NOT_ACCESSIBLE(9, 9),
     /**
-     *
-     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -243,8 +201,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(10, 10), /** - * - * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -253,8 +209,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_MALFORMED(11, 11), /** - * - * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -263,8 +217,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(12, 12), /** - * - * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -274,8 +226,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS(13, 13),
     /**
-     *
-     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -284,8 +234,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS(14, 14), /** - * - * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -295,8 +243,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS(15, 15),
     /**
-     *
-     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -305,8 +251,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ DUPLICATE_SCAN_NAME(16, 16), /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -315,8 +259,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_FIELD_VALUE(17, 18), /** - * - * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -325,8 +267,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FAILED_TO_AUTHENTICATE_TO_TARGET(18, 19), /** - * - * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -335,8 +275,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FINDING_TYPE_UNSPECIFIED(19, 20), /** - * - * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -346,8 +284,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -356,8 +292,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FORBIDDEN_UPDATE_TO_MANAGED_SCAN(21, 43), /** - * - * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -368,8 +302,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     MALFORMED_FILTER(22, 22),
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -378,8 +310,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ MALFORMED_RESOURCE_NAME(23, 23), /** - * - * *
      * The current project is not in an active state.
      * 
@@ -388,8 +318,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ PROJECT_INACTIVE(24, 24), /** - * - * *
      * A required field is not set.
      * 
@@ -398,8 +326,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ REQUIRED_FIELD(25, 25), /** - * - * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -409,8 +335,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -419,8 +343,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SCAN_ALREADY_RUNNING(27, 27), /** - * - * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -429,8 +351,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SCAN_NOT_RUNNING(28, 28), /** - * - * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -439,8 +359,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(29, 29), /** - * - * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -449,8 +367,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_MALFORMED(30, 30), /** - * - * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -459,8 +375,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(31, 31), /** - * - * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -470,8 +384,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(32, 32),
     /**
-     *
-     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -480,8 +392,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS(33, 33), /** - * - * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -491,8 +401,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEED_URL_HAS_UNRESERVED_IP_ADDRESS(34, 35),
     /**
-     *
-     *
      * 
      * The Web Security Scanner service account is not configured under the
      * project.
@@ -502,8 +410,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -512,8 +418,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TOO_MANY_SCANS(36, 37), /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -522,8 +426,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNABLE_TO_RESOLVE_PROJECT_INFO(37, 38), /** - * - * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -532,8 +434,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -542,8 +442,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_FILTER(39, 40), /** - * - * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -553,8 +451,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     UNSUPPORTED_FINDING_TYPE(40, 41),
     /**
-     *
-     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -566,8 +462,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * There is no error.
      * 
@@ -576,8 +470,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final Code OK = CODE_UNSPECIFIED; /** - * - * *
      * There is no error.
      * 
@@ -586,8 +478,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * There is no error.
      * 
@@ -596,8 +486,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OK_VALUE = 0; /** - * - * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -607,8 +495,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INTERNAL_ERROR_VALUE = 1;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -618,8 +504,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_API_BACKEND_ERROR_VALUE = 2;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -629,8 +513,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_API_NOT_ACCESSIBLE_VALUE = 3;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -640,8 +522,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_DEFAULT_HOST_MISSING_VALUE = 4;
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -650,8 +530,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANNOT_USE_GOOGLE_COM_ACCOUNT_VALUE = 6; /** - * - * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -660,8 +538,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANNOT_USE_OWNER_ACCOUNT_VALUE = 7; /** - * - * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -671,8 +547,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMPUTE_API_BACKEND_ERROR_VALUE = 8;
     /**
-     *
-     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -682,8 +556,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMPUTE_API_NOT_ACCESSIBLE_VALUE = 9;
     /**
-     *
-     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -692,8 +564,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 10; /** - * - * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -702,8 +572,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_MALFORMED_VALUE = 11; /** - * - * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -712,8 +580,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 12; /** - * - * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -723,8 +589,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 13;
     /**
-     *
-     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -733,8 +597,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 14; /** - * - * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -744,8 +606,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 15;
     /**
-     *
-     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -754,8 +614,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DUPLICATE_SCAN_NAME_VALUE = 16; /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -764,8 +622,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_FIELD_VALUE_VALUE = 18; /** - * - * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -774,8 +630,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_TO_AUTHENTICATE_TO_TARGET_VALUE = 19; /** - * - * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -784,8 +638,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINDING_TYPE_UNSPECIFIED_VALUE = 20; /** - * - * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -795,8 +647,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FORBIDDEN_TO_SCAN_COMPUTE_VALUE = 21;
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -805,8 +655,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORBIDDEN_UPDATE_TO_MANAGED_SCAN_VALUE = 43; /** - * - * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -817,8 +665,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MALFORMED_FILTER_VALUE = 22;
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -827,8 +673,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MALFORMED_RESOURCE_NAME_VALUE = 23; /** - * - * *
      * The current project is not in an active state.
      * 
@@ -837,8 +681,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROJECT_INACTIVE_VALUE = 24; /** - * - * *
      * A required field is not set.
      * 
@@ -847,8 +689,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REQUIRED_FIELD_VALUE = 25; /** - * - * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -858,8 +698,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESOURCE_NAME_INCONSISTENT_VALUE = 26;
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -868,8 +706,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCAN_ALREADY_RUNNING_VALUE = 27; /** - * - * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -878,8 +714,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCAN_NOT_RUNNING_VALUE = 28; /** - * - * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -888,8 +722,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 29; /** - * - * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -898,8 +730,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_MALFORMED_VALUE = 30; /** - * - * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -908,8 +738,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 31; /** - * - * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -919,8 +747,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 32;
     /**
-     *
-     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -929,8 +755,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 33; /** - * - * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -940,8 +764,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEED_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 35;
     /**
-     *
-     *
      * 
      * The Web Security Scanner service account is not configured under the
      * project.
@@ -951,8 +773,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SERVICE_ACCOUNT_NOT_CONFIGURED_VALUE = 36;
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -961,8 +781,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TOO_MANY_SCANS_VALUE = 37; /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -971,8 +789,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNABLE_TO_RESOLVE_PROJECT_INFO_VALUE = 38; /** - * - * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -981,8 +797,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_BLACKLIST_PATTERN_FORMAT_VALUE = 39; /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -991,8 +805,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_FILTER_VALUE = 40; /** - * - * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -1002,8 +814,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNSUPPORTED_FINDING_TYPE_VALUE = 41;
     /**
-     *
-     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -1012,6 +822,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_URL_SCHEME_VALUE = 42; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -1036,174 +847,91 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return INTERNAL_ERROR; - case 2: - return APPENGINE_API_BACKEND_ERROR; - case 3: - return APPENGINE_API_NOT_ACCESSIBLE; - case 4: - return APPENGINE_DEFAULT_HOST_MISSING; - case 6: - return CANNOT_USE_GOOGLE_COM_ACCOUNT; - case 7: - return CANNOT_USE_OWNER_ACCOUNT; - case 8: - return COMPUTE_API_BACKEND_ERROR; - case 9: - return COMPUTE_API_NOT_ACCESSIBLE; - case 10: - return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 11: - return CUSTOM_LOGIN_URL_MALFORMED; - case 12: - return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 13: - return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 14: - return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 15: - return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; - case 16: - return DUPLICATE_SCAN_NAME; - case 18: - return INVALID_FIELD_VALUE; - case 19: - return FAILED_TO_AUTHENTICATE_TO_TARGET; - case 20: - return FINDING_TYPE_UNSPECIFIED; - case 21: - return FORBIDDEN_TO_SCAN_COMPUTE; - case 43: - return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; - case 22: - return MALFORMED_FILTER; - case 23: - return MALFORMED_RESOURCE_NAME; - case 24: - return PROJECT_INACTIVE; - case 25: - return REQUIRED_FIELD; - case 26: - return RESOURCE_NAME_INCONSISTENT; - case 27: - return SCAN_ALREADY_RUNNING; - case 28: - return SCAN_NOT_RUNNING; - case 29: - return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 30: - return SEED_URL_MALFORMED; - case 31: - return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 32: - return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 33: - return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 35: - return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; - case 36: - return SERVICE_ACCOUNT_NOT_CONFIGURED; - case 37: - return TOO_MANY_SCANS; - case 38: - return UNABLE_TO_RESOLVE_PROJECT_INFO; - case 39: - return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; - case 40: - return UNSUPPORTED_FILTER; - case 41: - return UNSUPPORTED_FINDING_TYPE; - case 42: - return UNSUPPORTED_URL_SCHEME; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return INTERNAL_ERROR; + case 2: return APPENGINE_API_BACKEND_ERROR; + case 3: return APPENGINE_API_NOT_ACCESSIBLE; + case 4: return APPENGINE_DEFAULT_HOST_MISSING; + case 6: return CANNOT_USE_GOOGLE_COM_ACCOUNT; + case 7: return CANNOT_USE_OWNER_ACCOUNT; + case 8: return COMPUTE_API_BACKEND_ERROR; + case 9: return COMPUTE_API_NOT_ACCESSIBLE; + case 10: return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 11: return CUSTOM_LOGIN_URL_MALFORMED; + case 12: return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 13: return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 14: return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 15: return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; + case 16: return DUPLICATE_SCAN_NAME; + case 18: return INVALID_FIELD_VALUE; + case 19: return FAILED_TO_AUTHENTICATE_TO_TARGET; + case 20: return FINDING_TYPE_UNSPECIFIED; + case 21: return FORBIDDEN_TO_SCAN_COMPUTE; + case 43: return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; + case 22: return MALFORMED_FILTER; + case 23: return MALFORMED_RESOURCE_NAME; + case 24: return PROJECT_INACTIVE; + case 25: return REQUIRED_FIELD; + case 26: return RESOURCE_NAME_INCONSISTENT; + case 27: return SCAN_ALREADY_RUNNING; + case 28: return SCAN_NOT_RUNNING; + case 29: return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 30: return SEED_URL_MALFORMED; + case 31: return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 32: return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 33: return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 35: return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; + case 36: return SERVICE_ACCOUNT_NOT_CONFIGURED; + case 37: return TOO_MANY_SCANS; + case 38: return UNABLE_TO_RESOLVE_PROJECT_INFO; + case 39: return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; + case 40: return UNSUPPORTED_FILTER; + case 41: return UNSUPPORTED_FINDING_TYPE; + case 42: return UNSUPPORTED_URL_SCHEME; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigError.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigError.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = getStaticValuesArray(); - private static Code[] getStaticValuesArray() { return new Code[] { - CODE_UNSPECIFIED, - OK, - INTERNAL_ERROR, - APPENGINE_API_BACKEND_ERROR, - APPENGINE_API_NOT_ACCESSIBLE, - APPENGINE_DEFAULT_HOST_MISSING, - CANNOT_USE_GOOGLE_COM_ACCOUNT, - CANNOT_USE_OWNER_ACCOUNT, - COMPUTE_API_BACKEND_ERROR, - COMPUTE_API_NOT_ACCESSIBLE, - CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, - CUSTOM_LOGIN_URL_MALFORMED, - CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, - CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, - CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, - CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, - DUPLICATE_SCAN_NAME, - INVALID_FIELD_VALUE, - FAILED_TO_AUTHENTICATE_TO_TARGET, - FINDING_TYPE_UNSPECIFIED, - FORBIDDEN_TO_SCAN_COMPUTE, - FORBIDDEN_UPDATE_TO_MANAGED_SCAN, - MALFORMED_FILTER, - MALFORMED_RESOURCE_NAME, - PROJECT_INACTIVE, - REQUIRED_FIELD, - RESOURCE_NAME_INCONSISTENT, - SCAN_ALREADY_RUNNING, - SCAN_NOT_RUNNING, - SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, - SEED_URL_MALFORMED, - SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, - SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, - SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, - SEED_URL_HAS_UNRESERVED_IP_ADDRESS, - SERVICE_ACCOUNT_NOT_CONFIGURED, - TOO_MANY_SCANS, - UNABLE_TO_RESOLVE_PROJECT_INFO, - UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, - UNSUPPORTED_FILTER, - UNSUPPORTED_FINDING_TYPE, - UNSUPPORTED_URL_SCHEME, + CODE_UNSPECIFIED, OK, INTERNAL_ERROR, APPENGINE_API_BACKEND_ERROR, APPENGINE_API_NOT_ACCESSIBLE, APPENGINE_DEFAULT_HOST_MISSING, CANNOT_USE_GOOGLE_COM_ACCOUNT, CANNOT_USE_OWNER_ACCOUNT, COMPUTE_API_BACKEND_ERROR, COMPUTE_API_NOT_ACCESSIBLE, CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, CUSTOM_LOGIN_URL_MALFORMED, CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, DUPLICATE_SCAN_NAME, INVALID_FIELD_VALUE, FAILED_TO_AUTHENTICATE_TO_TARGET, FINDING_TYPE_UNSPECIFIED, FORBIDDEN_TO_SCAN_COMPUTE, FORBIDDEN_UPDATE_TO_MANAGED_SCAN, MALFORMED_FILTER, MALFORMED_RESOURCE_NAME, PROJECT_INACTIVE, REQUIRED_FIELD, RESOURCE_NAME_INCONSISTENT, SCAN_ALREADY_RUNNING, SCAN_NOT_RUNNING, SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, SEED_URL_MALFORMED, SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, SEED_URL_HAS_UNRESERVED_IP_ADDRESS, SERVICE_ACCOUNT_NOT_CONFIGURED, TOO_MANY_SCANS, UNABLE_TO_RESOLVE_PROJECT_INFO, UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, UNSUPPORTED_FILTER, UNSUPPORTED_FINDING_TYPE, UNSUPPORTED_URL_SCHEME, }; } - - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1225,46 +953,33 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fieldName_; /** - * - * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1273,7 +988,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() {
    * 
* * string field_name = 2; - * * @return The fieldName. */ @java.lang.Override @@ -1282,15 +996,14 @@ public java.lang.String getFieldName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; } } /** - * - * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1299,15 +1012,16 @@ public java.lang.String getFieldName() {
    * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ @java.lang.Override - public com.google.protobuf.ByteString getFieldNameBytes() { + public com.google.protobuf.ByteString + getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1316,7 +1030,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1328,10 +1041,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { @@ -1346,10 +1058,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); @@ -1362,16 +1073,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfigError)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfigError other = - (com.google.cloud.websecurityscanner.v1.ScanConfigError) obj; + com.google.cloud.websecurityscanner.v1.ScanConfigError other = (com.google.cloud.websecurityscanner.v1.ScanConfigError) obj; if (code_ != other.code_) return false; - if (!getFieldName().equals(other.getFieldName())) return false; + if (!getFieldName() + .equals(other.getFieldName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1393,104 +1104,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfigError prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfigError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
    * APIs when scan configuration validation fails. It is also reported as part of
@@ -1500,23 +1203,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfigError}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfigError)
       com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanConfigError.class,
-              com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanConfigError.class, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder()
@@ -1524,15 +1225,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1544,9 +1246,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
@@ -1565,8 +1267,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanConfigError buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanConfigError result =
-          new com.google.cloud.websecurityscanner.v1.ScanConfigError(this);
+      com.google.cloud.websecurityscanner.v1.ScanConfigError result = new com.google.cloud.websecurityscanner.v1.ScanConfigError(this);
       result.code_ = code_;
       result.fieldName_ = fieldName_;
       onBuilt();
@@ -1577,39 +1278,38 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfigError) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfigError) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfigError)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1617,8 +1317,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfigError other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -1645,8 +1344,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.ScanConfigError) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfigError) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1658,67 +1356,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -1726,24 +1408,21 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanConfigError.Co if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -1751,8 +1430,6 @@ public Builder clearCode() { private java.lang.Object fieldName_ = ""; /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1761,13 +1438,13 @@ public Builder clearCode() {
      * 
* * string field_name = 2; - * * @return The fieldName. */ public java.lang.String getFieldName() { java.lang.Object ref = fieldName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; @@ -1776,8 +1453,6 @@ public java.lang.String getFieldName() { } } /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1786,14 +1461,15 @@ public java.lang.String getFieldName() {
      * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ - public com.google.protobuf.ByteString getFieldNameBytes() { + public com.google.protobuf.ByteString + getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1801,8 +1477,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } } /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1811,22 +1485,20 @@ public com.google.protobuf.ByteString getFieldNameBytes() {
      * 
* * string field_name = 2; - * * @param value The fieldName to set. * @return This builder for chaining. */ - public Builder setFieldName(java.lang.String value) { + public Builder setFieldName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fieldName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1835,18 +1507,15 @@ public Builder setFieldName(java.lang.String value) {
      * 
* * string field_name = 2; - * * @return This builder for chaining. */ public Builder clearFieldName() { - + fieldName_ = getDefaultInstance().getFieldName(); onChanged(); return this; } /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1855,23 +1524,23 @@ public Builder clearFieldName() {
      * 
* * string field_name = 2; - * * @param value The bytes for fieldName to set. * @return This builder for chaining. */ - public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + public Builder setFieldNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1881,12 +1550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfigError) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfigError) private static final com.google.cloud.websecurityscanner.v1.ScanConfigError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfigError(); } @@ -1895,16 +1564,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanConfigError getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfigError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfigError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfigError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfigError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1919,4 +1588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java index 68b82547..c95f6cd7 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java @@ -1,56 +1,32 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_config_error.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanConfigErrorOrBuilder - extends +public interface ScanConfigErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfigError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode(); /** - * - * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -59,13 +35,10 @@ public interface ScanConfigErrorOrBuilder
    * 
* * string field_name = 2; - * * @return The fieldName. */ java.lang.String getFieldName(); /** - * - * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -74,8 +47,8 @@ public interface ScanConfigErrorOrBuilder
    * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ - com.google.protobuf.ByteString getFieldNameBytes(); + com.google.protobuf.ByteString + getFieldNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java new file mode 100644 index 00000000..89f5aaa1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_config_error.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanConfigErrorProto { + private ScanConfigErrorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1/sca" + + "n_config_error.proto\022\"google.cloud.webse" + + "curityscanner.v1\"\351\013\n\017ScanConfigError\022F\n\004" + + "code\030\001 \001(\01628.google.cloud.websecuritysca" + + "nner.v1.ScanConfigError.Code\022\022\n\nfield_na" + + "me\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022" + + "\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\037\n\033APPENGINE" + + "_API_BACKEND_ERROR\020\002\022 \n\034APPENGINE_API_NO" + + "T_ACCESSIBLE\020\003\022\"\n\036APPENGINE_DEFAULT_HOST" + + "_MISSING\020\004\022!\n\035CANNOT_USE_GOOGLE_COM_ACCO" + + "UNT\020\006\022\034\n\030CANNOT_USE_OWNER_ACCOUNT\020\007\022\035\n\031C" + + "OMPUTE_API_BACKEND_ERROR\020\010\022\036\n\032COMPUTE_AP" + + "I_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM_LOGIN_URL_D" + + "OES_NOT_BELONG_TO_CURRENT_PROJECT\020\n\022\036\n\032C" + + "USTOM_LOGIN_URL_MALFORMED\020\013\0223\n/CUSTOM_LO" + + "GIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\014" + + "\0221\n-CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVE" + + "D_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_URL_HAS_NON_" + + "ROUTABLE_IP_ADDRESS\020\016\022.\n*CUSTOM_LOGIN_UR" + + "L_HAS_UNRESERVED_IP_ADDRESS\020\017\022\027\n\023DUPLICA" + + "TE_SCAN_NAME\020\020\022\027\n\023INVALID_FIELD_VALUE\020\022\022" + + "$\n FAILED_TO_AUTHENTICATE_TO_TARGET\020\023\022\034\n" + + "\030FINDING_TYPE_UNSPECIFIED\020\024\022\035\n\031FORBIDDEN" + + "_TO_SCAN_COMPUTE\020\025\022$\n FORBIDDEN_UPDATE_T" + + "O_MANAGED_SCAN\020+\022\024\n\020MALFORMED_FILTER\020\026\022\033" + + "\n\027MALFORMED_RESOURCE_NAME\020\027\022\024\n\020PROJECT_I" + + "NACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020\031\022\036\n\032RESOURC" + + "E_NAME_INCONSISTENT\020\032\022\030\n\024SCAN_ALREADY_RU" + + "NNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020\034\022/\n+SEED_UR" + + "L_DOES_NOT_BELONG_TO_CURRENT_PROJECT\020\035\022\026" + + "\n\022SEED_URL_MALFORMED\020\036\022+\n\'SEED_URL_MAPPE" + + "D_TO_NON_ROUTABLE_ADDRESS\020\037\022)\n%SEED_URL_" + + "MAPPED_TO_UNRESERVED_ADDRESS\020 \022(\n$SEED_U" + + "RL_HAS_NON_ROUTABLE_IP_ADDRESS\020!\022&\n\"SEED" + + "_URL_HAS_UNRESERVED_IP_ADDRESS\020#\022\"\n\036SERV" + + "ICE_ACCOUNT_NOT_CONFIGURED\020$\022\022\n\016TOO_MANY" + + "_SCANS\020%\022\"\n\036UNABLE_TO_RESOLVE_PROJECT_IN" + + "FO\020&\022(\n$UNSUPPORTED_BLACKLIST_PATTERN_FO" + + "RMAT\020\'\022\026\n\022UNSUPPORTED_FILTER\020(\022\034\n\030UNSUPP" + + "ORTED_FINDING_TYPE\020)\022\032\n\026UNSUPPORTED_URL_" + + "SCHEME\020*\032\002\020\001B\210\002\n&com.google.cloud.websec" + + "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" + + "Tgoogle.golang.org/genproto/googleapis/c" + + "loud/websecurityscanner/v1;websecuritysc" + + "anner\252\002\"Google.Cloud.WebSecurityScanner." + + "V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V1\352" + + "\002%Google::Cloud::WebSecurityScanner::V1b" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor, + new java.lang.String[] { "Code", "FieldName", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java similarity index 81% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java index 32718b4f..882ee270 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_config.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanConfigOrBuilder - extends +public interface ScanConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -33,13 +15,10 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -47,39 +26,32 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -88,91 +60,72 @@ public interface ScanConfigOrBuilder
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ int getMaxQps(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @return A list containing the startingUrls. */ - java.util.List getStartingUrlsList(); + java.util.List + getStartingUrlsList(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @return The count of startingUrls. */ int getStartingUrlsCount(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ java.lang.String getStartingUrls(int index); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - com.google.protobuf.ByteString getStartingUrlsBytes(int index); + com.google.protobuf.ByteString + getStartingUrlsBytes(int index); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * * @return The authentication. */ com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
@@ -180,116 +133,91 @@ public interface ScanConfigOrBuilder
    *
    * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
    */
-  com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder
-      getAuthenticationOrBuilder();
+  com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ int getUserAgentValue(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent(); /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - java.util.List getBlacklistPatternsList(); + java.util.List + getBlacklistPatternsList(); /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ int getBlacklistPatternsCount(); /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ java.lang.String getBlacklistPatterns(int index); /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - com.google.protobuf.ByteString getBlacklistPatternsBytes(int index); + com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -299,87 +227,74 @@ public interface ScanConfigOrBuilder com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder(); /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ int getExportToSecurityCommandCenterValue(); /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter(); + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter(); /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ int getRiskLevelValue(); /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel(); /** - * - * *
    * Whether the scan config is managed by Web Security Scanner, output
    * only.
    * 
* * bool managed_scan = 13; - * * @return The managedScan. */ boolean getManagedScan(); /** - * - * *
    * Whether the scan configuration has enabled static IP address scan feature.
    * If enabled, the scanner will access applications from static IP addresses.
    * 
* * bool static_ip_scan = 14; - * * @return The staticIpScan. */ boolean getStaticIpScan(); + + /** + *
+   * Whether to keep scanning even if most requests return HTTP error codes.
+   * 
+ * + * bool ignore_http_status_errors = 15; + * @return The ignoreHttpStatusErrors. + */ + boolean getIgnoreHttpStatusErrors(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java new file mode 100644 index 00000000..6042fd1d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java @@ -0,0 +1,175 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_config.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanConfigProto { + private ScanConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/websecurityscanner/v1/sca" + + "n_config.proto\022\"google.cloud.websecurity" + + "scanner.v1\032\037google/api/field_behavior.pr" + + "oto\032\037google/protobuf/timestamp.proto\"\304\r\n" + + "\nScanConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" + + "e\030\002 \001(\t\022\017\n\007max_qps\030\003 \001(\005\022\025\n\rstarting_url" + + "s\030\004 \003(\t\022U\n\016authentication\030\005 \001(\0132=.google" + + ".cloud.websecurityscanner.v1.ScanConfig." + + "Authentication\022L\n\nuser_agent\030\006 \001(\01628.goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig.UserAgent\022\032\n\022blacklist_patterns\030\007 \003(\t" + + "\022I\n\010schedule\030\010 \001(\01327.google.cloud.websec" + + "urityscanner.v1.ScanConfig.Schedule\022w\n!e" + + "xport_to_security_command_center\030\n \001(\0162L" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Config.ExportToSecurityCommandCenter\022L\n\n" + + "risk_level\030\014 \001(\01628.google.cloud.websecur" + + "ityscanner.v1.ScanConfig.RiskLevel\022\024\n\014ma" + + "naged_scan\030\r \001(\010\022\026\n\016static_ip_scan\030\016 \001(\010" + + "\022!\n\031ignore_http_status_errors\030\017 \001(\010\032\327\005\n\016" + + "Authentication\022i\n\016google_account\030\001 \001(\0132K" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Config.Authentication.GoogleAccountB\002\030\001H" + + "\000\022e\n\016custom_account\030\002 \001(\0132K.google.cloud" + + ".websecurityscanner.v1.ScanConfig.Authen" + + "tication.CustomAccountH\000\022e\n\016iap_credenti" + + "al\030\004 \001(\0132K.google.cloud.websecurityscann" + + "er.v1.ScanConfig.Authentication.IapCrede" + + "ntialH\000\0327\n\rGoogleAccount\022\020\n\010username\030\001 \001" + + "(\t\022\020\n\010password\030\002 \001(\t:\002\030\001\032F\n\rCustomAccoun" + + "t\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n" + + "\tlogin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035i" + + "ap_test_service_account_info\030\001 \001(\0132e.goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig.Authentication.IapCredential.IapTestS" + + "erviceAccountInfoH\000\032C\n\031IapTestServiceAcc" + + "ountInfo\022&\n\031target_audience_client_id\030\001 " + + "\001(\tB\003\340A\002B\021\n\017iap_credentialsB\020\n\016authentic" + + "ation\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\013" + + "2\032.google.protobuf.Timestamp\022\036\n\026interval" + + "_duration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USE" + + "R_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022" + + "\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<" + + "\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022" + + "\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurity" + + "CommandCenter\0221\n-EXPORT_TO_SECURITY_COMM" + + "AND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n" + + "\010DISABLED\020\002B\203\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\017ScanConfigProtoP\001ZTgoogl" + + "e.golang.org/genproto/googleapis/cloud/w" + + "ebsecurityscanner/v1;websecurityscanner\252" + + "\002\"Google.Cloud.WebSecurityScanner.V1\312\002\"G" + + "oogle\\Cloud\\WebSecurityScanner\\V1\352\002%Goog" + + "le::Cloud::WebSecurityScanner::V1b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "MaxQps", "StartingUrls", "Authentication", "UserAgent", "BlacklistPatterns", "Schedule", "ExportToSecurityCommandCenter", "RiskLevel", "ManagedScan", "StaticIpScan", "IgnoreHttpStatusErrors", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor, + new java.lang.String[] { "GoogleAccount", "CustomAccount", "IapCredential", "Authentication", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor, + new java.lang.String[] { "Username", "Password", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor, + new java.lang.String[] { "Username", "Password", "LoginUrl", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor, + new java.lang.String[] { "IapTestServiceAccountInfo", "IapCredentials", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor, + new java.lang.String[] { "TargetAudienceClientId", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor, + new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java similarity index 75% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java index 310c9694..ac32d009 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_run.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A ScanRun is a output-only resource representing an actual run of the scan.
  * Next id: 12
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRun}
  */
-public final class ScanRun extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRun extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRun)
     ScanRunOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRun.newBuilder() to construct.
   private ScanRun(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRun() {
     name_ = "";
     executionState_ = 0;
@@ -47,15 +29,16 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRun(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,115 +58,99 @@ private ScanRun(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              executionState_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            executionState_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              resultState_ = rawValue;
-              break;
-            }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            resultState_ = rawValue;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 48:
-            {
-              urlsCrawledCount_ = input.readInt64();
-              break;
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              urlsTestedCount_ = input.readInt64();
-              break;
+
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 64:
-            {
-              hasVulnerabilities_ = input.readBool();
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          case 72:
-            {
-              progressPercent_ = input.readInt32();
-              break;
+
+            break;
+          }
+          case 48: {
+
+            urlsCrawledCount_ = input.readInt64();
+            break;
+          }
+          case 56: {
+
+            urlsTestedCount_ = input.readInt64();
+            break;
+          }
+          case 64: {
+
+            hasVulnerabilities_ = input.readBool();
+            break;
+          }
+          case 72: {
+
+            progressPercent_ = input.readInt32();
+            break;
+          }
+          case 82: {
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
+            if (errorTrace_ != null) {
+              subBuilder = errorTrace_.toBuilder();
             }
-          case 82:
-            {
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
-              if (errorTrace_ != null) {
-                subBuilder = errorTrace_.toBuilder();
-              }
-              errorTrace_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(errorTrace_);
-                errorTrace_ = subBuilder.buildPartial();
-              }
-
-              break;
+            errorTrace_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(errorTrace_);
+              errorTrace_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                warningTraces_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              warningTraces_.add(
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(),
-                      extensionRegistry));
-              break;
+
+            break;
+          }
+          case 90: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              warningTraces_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            warningTraces_.add(
+                input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -191,7 +158,8 @@ private ScanRun(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_);
@@ -200,35 +168,29 @@ private ScanRun(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRun.class,
-            com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRun.class, com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Types of ScanRun execution state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRun.ExecutionState} */ - public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -238,8 +200,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -248,8 +208,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * The scan is in progress.
      * 
@@ -258,8 +216,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING(2), /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -271,8 +227,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -282,8 +236,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -292,8 +244,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * The scan is in progress.
      * 
@@ -302,8 +252,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCANNING_VALUE = 2; /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -312,6 +260,7 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINISHED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -336,51 +285,50 @@ public static ExecutionState valueOf(int value) { */ public static ExecutionState forNumber(int value) { switch (value) { - case 0: - return EXECUTION_STATE_UNSPECIFIED; - case 1: - return QUEUED; - case 2: - return SCANNING; - case 3: - return FINISHED; - default: - return null; + case 0: return EXECUTION_STATE_UNSPECIFIED; + case 1: return QUEUED; + case 2: return SCANNING; + case 3: return FINISHED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRun.getDescriptor().getEnumTypes().get(0); } private static final ExecutionState[] VALUES = values(); - public static ExecutionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -398,18 +346,15 @@ private ExecutionState(int value) { } /** - * - * *
    * Types of ScanRun result state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRun.ResultState} */ - public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { + public enum ResultState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -419,8 +364,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -429,8 +372,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESS(1), /** - * - * *
      * The scan finished with errors.
      * 
@@ -439,8 +380,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(2), /** - * - * *
      * The scan was terminated by user.
      * 
@@ -452,8 +391,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -463,8 +400,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -473,8 +408,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESS_VALUE = 1; /** - * - * *
      * The scan finished with errors.
      * 
@@ -483,8 +416,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; /** - * - * *
      * The scan was terminated by user.
      * 
@@ -493,6 +424,7 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KILLED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -517,51 +449,50 @@ public static ResultState valueOf(int value) { */ public static ResultState forNumber(int value) { switch (value) { - case 0: - return RESULT_STATE_UNSPECIFIED; - case 1: - return SUCCESS; - case 2: - return ERROR; - case 3: - return KILLED; - default: - return null; + case 0: return RESULT_STATE_UNSPECIFIED; + case 1: return SUCCESS; + case 2: return ERROR; + case 3: return KILLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResultState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultState findValueByNumber(int number) { + return ResultState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultState findValueByNumber(int number) { - return ResultState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRun.getDescriptor().getEnumTypes().get(1); } private static final ResultState[] VALUES = values(); - public static ResultState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -581,8 +512,6 @@ private ResultState(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -590,7 +519,6 @@ private ResultState(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -599,15 +527,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -615,15 +542,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -634,92 +562,67 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; private int executionState_; /** - * - * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; } public static final int RESULT_STATE_FIELD_NUMBER = 3; private int resultState_; /** - * - * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -727,14 +630,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ @java.lang.Override @@ -742,8 +642,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
@@ -758,15 +656,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -774,15 +669,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -790,8 +682,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -807,15 +697,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_;
   /**
-   *
-   *
    * 
    * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -826,8 +713,6 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_; /** - * - * *
    * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -836,7 +721,6 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -847,14 +731,11 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_; /** - * - * *
    * Output only. Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -865,8 +746,6 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_; /** - * - * *
    * Output only. The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -875,7 +754,6 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -886,15 +764,12 @@ public int getProgressPercent() { public static final int ERROR_TRACE_FIELD_NUMBER = 10; private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ @java.lang.Override @@ -902,26 +777,19 @@ public boolean hasErrorTrace() { return errorTrace_ != null; } /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -930,90 +798,71 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace()
    * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder
-      getErrorTraceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
     return getErrorTrace();
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
   private java.util.List warningTraces_;
   /**
-   *
-   *
    * 
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public java.util.List - getWarningTracesList() { + public java.util.List getWarningTracesList() { return warningTraces_; } /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> + public java.util.List getWarningTracesOrBuilderList() { return warningTraces_; } /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override public int getWarningTracesCount() { return warningTraces_.size(); } /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTraces(int index) { return warningTraces_.get(index); } /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder - getWarningTracesOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( + int index) { return warningTraces_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1025,18 +874,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED - .getNumber()) { + if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { + if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, resultState_); } if (startTime_ != null) { @@ -1075,39 +921,45 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, executionState_); + if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultState_); + if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resultState_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndTime()); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, urlsTestedCount_); } if (hasVulnerabilities_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hasVulnerabilities_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, hasVulnerabilities_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, progressPercent_); } if (errorTrace_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getErrorTrace()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getErrorTrace()); } for (int i = 0; i < warningTraces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, warningTraces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, warningTraces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1117,34 +969,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRun)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRun other = - (com.google.cloud.websecurityscanner.v1.ScanRun) obj; + com.google.cloud.websecurityscanner.v1.ScanRun other = (com.google.cloud.websecurityscanner.v1.ScanRun) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; - if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (getUrlsCrawledCount() + != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() + != other.getUrlsTestedCount()) return false; + if (getHasVulnerabilities() + != other.getHasVulnerabilities()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasErrorTrace() != other.hasErrorTrace()) return false; if (hasErrorTrace()) { - if (!getErrorTrace().equals(other.getErrorTrace())) return false; + if (!getErrorTrace() + .equals(other.getErrorTrace())) return false; } - if (!getWarningTracesList().equals(other.getWarningTracesList())) return false; + if (!getWarningTracesList() + .equals(other.getWarningTracesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1171,11 +1031,14 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsTestedCount()); hash = (37 * hash) + HAS_VULNERABILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); if (hasErrorTrace()) { @@ -1191,104 +1054,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanRun is a output-only resource representing an actual run of the scan.
    * Next id: 12
@@ -1296,23 +1152,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRun}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRun)
       com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRun.class,
-              com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRun.class, com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRun.newBuilder()
@@ -1320,17 +1174,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getWarningTracesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1376,9 +1230,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
     }
 
     @java.lang.Override
@@ -1397,8 +1251,7 @@ public com.google.cloud.websecurityscanner.v1.ScanRun build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRun buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRun result =
-          new com.google.cloud.websecurityscanner.v1.ScanRun(this);
+      com.google.cloud.websecurityscanner.v1.ScanRun result = new com.google.cloud.websecurityscanner.v1.ScanRun(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.executionState_ = executionState_;
@@ -1439,39 +1292,38 @@ public com.google.cloud.websecurityscanner.v1.ScanRun buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRun) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRun) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRun)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1529,10 +1381,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRun other) {
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            warningTracesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getWarningTracesFieldBuilder()
-                    : null;
+            warningTracesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getWarningTracesFieldBuilder() : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1566,13 +1417,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1580,13 +1428,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1595,8 +1443,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1604,14 +1450,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1619,8 +1466,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1628,22 +1473,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1651,18 +1494,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1670,16 +1510,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1687,93 +1527,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int executionState_ = 0; /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState( - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { + public Builder setExecutionState(com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1781,98 +1601,78 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState( - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { + public Builder setResultState(com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; @@ -1880,33 +1680,24 @@ public Builder clearResultState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1917,8 +1708,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1939,15 +1728,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1958,8 +1746,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1970,7 +1756,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1982,8 +1768,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -2002,8 +1786,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -2011,13 +1793,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -2028,12 +1808,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -2041,17 +1820,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2059,35 +1835,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2098,8 +1865,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2121,8 +1886,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2130,7 +1893,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -2141,8 +1905,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2154,7 +1916,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -2166,8 +1928,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2187,8 +1947,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2197,13 +1955,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2215,12 +1971,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2229,33 +1984,27 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
 
-    private long urlsCrawledCount_;
+    private long urlsCrawledCount_ ;
     /**
-     *
-     *
      * 
      * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -2263,47 +2012,39 @@ public long getUrlsCrawledCount() { return urlsCrawledCount_; } /** - * - * *
      * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_; + private long urlsTestedCount_ ; /** - * - * *
      * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2312,7 +2053,6 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -2320,8 +2060,6 @@ public long getUrlsTestedCount() { return urlsTestedCount_; } /** - * - * *
      * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2330,19 +2068,16 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2351,26 +2086,22 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasVulnerabilities_; + private boolean hasVulnerabilities_ ; /** - * - * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -2378,45 +2109,37 @@ public boolean getHasVulnerabilities() { return hasVulnerabilities_; } /** - * - * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @param value The hasVulnerabilities to set. * @return This builder for chaining. */ public Builder setHasVulnerabilities(boolean value) { - + hasVulnerabilities_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { - + hasVulnerabilities_ = false; onChanged(); return this; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2425,7 +2148,6 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -2433,8 +2155,6 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2443,19 +2163,16 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2464,11 +2181,10 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -2476,49 +2192,36 @@ public Builder clearProgressPercent() { private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> - errorTraceBuilder_; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> errorTraceBuilder_; /** - * - * *
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ public boolean hasErrorTrace() { return errorTraceBuilder_ != null || errorTrace_ != null; } /** - * - * *
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { if (errorTraceBuilder_ == null) { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } else { return errorTraceBuilder_.getMessage(); } } /** - * - * *
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2540,8 +2243,6 @@ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunError
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2561,8 +2262,6 @@ public Builder setErrorTrace(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2574,9 +2273,7 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr
       if (errorTraceBuilder_ == null) {
         if (errorTrace_ != null) {
           errorTrace_ =
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_).mergeFrom(value).buildPartial();
         } else {
           errorTrace_ = value;
         }
@@ -2588,8 +2285,6 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2609,8 +2304,6 @@ public Builder clearErrorTrace() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2619,13 +2312,11 @@ public Builder clearErrorTrace() {
      * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
      */
     public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getErrorTraceBuilder() {
-
+      
       onChanged();
       return getErrorTraceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2633,19 +2324,15 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getError
      *
      * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
      */
-    public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder
-        getErrorTraceOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
       if (errorTraceBuilder_ != null) {
         return errorTraceBuilder_.getMessageOrBuilder();
       } else {
-        return errorTrace_ == null
-            ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()
-            : errorTrace_;
+        return errorTrace_ == null ?
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2654,52 +2341,39 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getError
      * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace,
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder,
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>
+        com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> 
         getErrorTraceFieldBuilder() {
       if (errorTraceBuilder_ == null) {
-        errorTraceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace,
-                com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder,
-                com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>(
-                getErrorTrace(), getParentForChildren(), isClean());
+        errorTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>(
+                getErrorTrace(),
+                getParentForChildren(),
+                isClean());
         errorTrace_ = null;
       }
       return errorTraceBuilder_;
     }
 
-    private java.util.List
-        warningTraces_ = java.util.Collections.emptyList();
-
+    private java.util.List warningTraces_ =
+      java.util.Collections.emptyList();
     private void ensureWarningTracesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        warningTraces_ =
-            new java.util.ArrayList(
-                warningTraces_);
+        warningTraces_ = new java.util.ArrayList(warningTraces_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace,
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder,
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>
-        warningTracesBuilder_;
+        com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> warningTracesBuilder_;
 
     /**
-     *
-     *
      * 
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List - getWarningTracesList() { + public java.util.List getWarningTracesList() { if (warningTracesBuilder_ == null) { return java.util.Collections.unmodifiableList(warningTraces_); } else { @@ -2707,14 +2381,11 @@ private void ensureWarningTracesIsMutable() { } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public int getWarningTracesCount() { if (warningTracesBuilder_ == null) { @@ -2724,14 +2395,11 @@ public int getWarningTracesCount() { } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTraces(int index) { if (warningTracesBuilder_ == null) { @@ -2741,14 +2409,11 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTrac } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder setWarningTraces( int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { @@ -2765,18 +2430,14 @@ public Builder setWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder setWarningTraces( - int index, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.set(index, builderForValue.build()); @@ -2787,17 +2448,13 @@ public Builder setWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public Builder addWarningTraces( - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { + public Builder addWarningTraces(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { if (warningTracesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2811,14 +2468,11 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { @@ -2835,14 +2489,11 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { @@ -2856,18 +2507,14 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( - int index, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.add(index, builderForValue.build()); @@ -2878,21 +2525,18 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder addAllWarningTraces( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warningTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warningTraces_); onChanged(); } else { warningTracesBuilder_.addAllMessages(values); @@ -2900,14 +2544,11 @@ public Builder addAllWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder clearWarningTraces() { if (warningTracesBuilder_ == null) { @@ -2920,14 +2561,11 @@ public Builder clearWarningTraces() { return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder removeWarningTraces(int index) { if (warningTracesBuilder_ == null) { @@ -2940,50 +2578,39 @@ public Builder removeWarningTraces(int index) { return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder - getWarningTracesBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder getWarningTracesBuilder( + int index) { return getWarningTracesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder - getWarningTracesOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( + int index) { if (warningTracesBuilder_ == null) { - return warningTraces_.get(index); - } else { + return warningTraces_.get(index); } else { return warningTracesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> - getWarningTracesOrBuilderList() { + public java.util.List + getWarningTracesOrBuilderList() { if (warningTracesBuilder_ != null) { return warningTracesBuilder_.getMessageOrBuilderList(); } else { @@ -2991,64 +2618,45 @@ public Builder removeWarningTraces(int index) { } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder - addWarningTracesBuilder() { - return getWarningTracesFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder addWarningTracesBuilder() { + return getWarningTracesFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder - addWarningTracesBuilder(int index) { - return getWarningTracesFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder addWarningTracesBuilder( + int index) { + return getWarningTracesFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List - getWarningTracesBuilderList() { + public java.util.List + getWarningTracesBuilderList() { return getWarningTracesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> getWarningTracesFieldBuilder() { if (warningTracesBuilder_ == null) { - warningTracesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>( + warningTracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>( warningTraces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3057,9 +2665,9 @@ public Builder removeWarningTraces(int index) { } return warningTracesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3069,12 +2677,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRun) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRun) private static final com.google.cloud.websecurityscanner.v1.ScanRun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRun(); } @@ -3083,16 +2691,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRun getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3107,4 +2715,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java similarity index 74% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java index 9635019b..ba0b071f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Output only.
  * Defines an error trace message for a ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace}
  */
-public final class ScanRunErrorTrace extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRunErrorTrace extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRunErrorTrace)
     ScanRunErrorTraceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRunErrorTrace.newBuilder() to construct.
   private ScanRunErrorTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRunErrorTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunErrorTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRunErrorTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,42 +54,37 @@ private ScanRunErrorTrace(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder subBuilder = null;
-              if (scanConfigError_ != null) {
-                subBuilder = scanConfigError_.toBuilder();
-              }
-              scanConfigError_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ScanConfigError.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(scanConfigError_);
-                scanConfigError_ = subBuilder.buildPartial();
-              }
-
-              break;
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder subBuilder = null;
+            if (scanConfigError_ != null) {
+              subBuilder = scanConfigError_.toBuilder();
             }
-          case 24:
-            {
-              mostCommonHttpErrorCode_ = input.readInt32();
-              break;
+            scanConfigError_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfigError.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scanConfigError_);
+              scanConfigError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 24: {
+
+            mostCommonHttpErrorCode_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -114,43 +92,38 @@ private ScanRunErrorTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class,
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines an error reason code.
-   * Next id: 7
+   * Next id: 8
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code} */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value is never used.
      * 
@@ -159,8 +132,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -169,8 +140,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ INTERNAL_ERROR(1), /** - * - * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -180,8 +149,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCAN_CONFIG_ISSUE(2),
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -191,8 +158,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     AUTHENTICATION_CONFIG_ISSUE(3),
     /**
-     *
-     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -201,8 +166,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TIMED_OUT_WHILE_SCANNING(4), /** - * - * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -212,8 +175,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_REDIRECTS(5),
     /**
-     *
-     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -227,8 +188,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -237,8 +196,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -247,8 +204,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERNAL_ERROR_VALUE = 1; /** - * - * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -258,8 +213,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SCAN_CONFIG_ISSUE_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -269,8 +222,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int AUTHENTICATION_CONFIG_ISSUE_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -279,8 +230,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIMED_OUT_WHILE_SCANNING_VALUE = 4; /** - * - * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -290,8 +239,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_REDIRECTS_VALUE = 5;
     /**
-     *
-     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -302,6 +249,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_HTTP_ERRORS_VALUE = 6;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -326,59 +274,53 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0:
-          return CODE_UNSPECIFIED;
-        case 1:
-          return INTERNAL_ERROR;
-        case 2:
-          return SCAN_CONFIG_ISSUE;
-        case 3:
-          return AUTHENTICATION_CONFIG_ISSUE;
-        case 4:
-          return TIMED_OUT_WHILE_SCANNING;
-        case 5:
-          return TOO_MANY_REDIRECTS;
-        case 6:
-          return TOO_MANY_HTTP_ERRORS;
-        default:
-          return null;
+        case 0: return CODE_UNSPECIFIED;
+        case 1: return INTERNAL_ERROR;
+        case 2: return SCAN_CONFIG_ISSUE;
+        case 3: return AUTHENTICATION_CONFIG_ISSUE;
+        case 4: return TIMED_OUT_WHILE_SCANNING;
+        case 5: return TOO_MANY_REDIRECTS;
+        case 6: return TOO_MANY_HTTP_ERRORS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Code> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Code findValueByNumber(int number) {
+              return Code.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Code findValueByNumber(int number) {
-            return Code.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -398,46 +340,33 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
-   *
-   *
    * 
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED : result; } public static final int SCAN_CONFIG_ERROR_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1.ScanConfigError scanConfigError_; /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -445,7 +374,6 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ @java.lang.Override @@ -453,8 +381,6 @@ public boolean hasScanConfigError() { return scanConfigError_ != null; } /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -462,18 +388,13 @@ public boolean hasScanConfigError() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError() { - return scanConfigError_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() - : scanConfigError_; + return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_; } /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -483,16 +404,13 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError
    * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder
-      getScanConfigErrorOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
     return getScanConfigError();
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_;
   /**
-   *
-   *
    * 
    * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -500,7 +418,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -509,7 +426,6 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,10 +437,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (scanConfigError_ != null) { @@ -542,16 +457,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (scanConfigError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfigError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfigError()); } if (mostCommonHttpErrorCode_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mostCommonHttpErrorCode_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, mostCommonHttpErrorCode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -561,20 +477,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace other = - (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) obj; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace other = (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) obj; if (code_ != other.code_) return false; if (hasScanConfigError() != other.hasScanConfigError()) return false; if (hasScanConfigError()) { - if (!getScanConfigError().equals(other.getScanConfigError())) return false; + if (!getScanConfigError() + .equals(other.getScanConfigError())) return false; } - if (getMostCommonHttpErrorCode() != other.getMostCommonHttpErrorCode()) return false; + if (getMostCommonHttpErrorCode() + != other.getMostCommonHttpErrorCode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -600,104 +517,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output only.
    * Defines an error trace message for a ScanRun.
@@ -705,23 +614,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRunErrorTrace)
       com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class,
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder()
@@ -729,15 +636,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -755,9 +663,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
@@ -776,8 +684,7 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace result =
-          new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(this);
+      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace result = new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(this);
       result.code_ = code_;
       if (scanConfigErrorBuilder_ == null) {
         result.scanConfigError_ = scanConfigError_;
@@ -793,39 +700,38 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -833,8 +739,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -863,8 +768,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -876,67 +780,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -944,24 +832,21 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace. if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -969,13 +854,8 @@ public Builder clearCode() { private com.google.cloud.websecurityscanner.v1.ScanConfigError scanConfigError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfigError, - com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder> - scanConfigErrorBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfigError, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder> scanConfigErrorBuilder_; /** - * - * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -983,15 +863,12 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return scanConfigErrorBuilder_ != null || scanConfigError_ != null; } /** - * - * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -999,21 +876,16 @@ public boolean hasScanConfigError() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError() { if (scanConfigErrorBuilder_ == null) { - return scanConfigError_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() - : scanConfigError_; + return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_; } else { return scanConfigErrorBuilder_.getMessage(); } } /** - * - * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1022,8 +894,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public Builder setScanConfigError(
-        com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
+    public Builder setScanConfigError(com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1037,8 +908,6 @@ public Builder setScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1059,8 +928,6 @@ public Builder setScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1069,14 +936,11 @@ public Builder setScanConfigError(
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public Builder mergeScanConfigError(
-        com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
+    public Builder mergeScanConfigError(com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (scanConfigError_ != null) {
           scanConfigError_ =
-              com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder(scanConfigError_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder(scanConfigError_).mergeFrom(value).buildPartial();
         } else {
           scanConfigError_ = value;
         }
@@ -1088,8 +952,6 @@ public Builder mergeScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1110,8 +972,6 @@ public Builder clearScanConfigError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1120,15 +980,12 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder
-        getScanConfigErrorBuilder() {
-
+    public com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder getScanConfigErrorBuilder() {
+      
       onChanged();
       return getScanConfigErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1137,19 +994,15 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder
-        getScanConfigErrorOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
       if (scanConfigErrorBuilder_ != null) {
         return scanConfigErrorBuilder_.getMessageOrBuilder();
       } else {
-        return scanConfigError_ == null
-            ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()
-            : scanConfigError_;
+        return scanConfigError_ == null ?
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1159,26 +1012,21 @@ public Builder clearScanConfigError() {
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanConfigError,
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder,
-            com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder>
+        com.google.cloud.websecurityscanner.v1.ScanConfigError, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder> 
         getScanConfigErrorFieldBuilder() {
       if (scanConfigErrorBuilder_ == null) {
-        scanConfigErrorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.ScanConfigError,
-                com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder,
-                com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder>(
-                getScanConfigError(), getParentForChildren(), isClean());
+        scanConfigErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.ScanConfigError, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder>(
+                getScanConfigError(),
+                getParentForChildren(),
+                isClean());
         scanConfigError_ = null;
       }
       return scanConfigErrorBuilder_;
     }
 
-    private int mostCommonHttpErrorCode_;
+    private int mostCommonHttpErrorCode_ ;
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1186,7 +1034,6 @@ public Builder clearScanConfigError() {
      * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1194,8 +1041,6 @@ public int getMostCommonHttpErrorCode() { return mostCommonHttpErrorCode_; } /** - * - * *
      * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1203,19 +1048,16 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; - * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ public Builder setMostCommonHttpErrorCode(int value) { - + mostCommonHttpErrorCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1223,18 +1065,17 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; - * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { - + mostCommonHttpErrorCode_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRunErrorTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRunErrorTrace) private static final com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(); } @@ -1258,16 +1099,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunErrorTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunErrorTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunErrorTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunErrorTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,4 +1123,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java index fb974bf8..469625b4 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java @@ -1,56 +1,32 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunErrorTraceOrBuilder - extends +public interface ScanRunErrorTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunErrorTrace) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode(); /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -58,13 +34,10 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ boolean hasScanConfigError(); /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -72,13 +45,10 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError(); /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -90,8 +60,6 @@ public interface ScanRunErrorTraceOrBuilder
   com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -99,7 +67,6 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ int getMostCommonHttpErrorCode(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java new file mode 100644 index 00000000..22246c0b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunErrorTraceProto { + private ScanRunErrorTraceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1/sca" + + "n_run_error_trace.proto\022\"google.cloud.we" + + "bsecurityscanner.v1\032:google/cloud/websec" + + "urityscanner/v1/scan_config_error.proto\"" + + "\215\003\n\021ScanRunErrorTrace\022H\n\004code\030\001 \001(\0162:.go" + + "ogle.cloud.websecurityscanner.v1.ScanRun" + + "ErrorTrace.Code\022N\n\021scan_config_error\030\002 \001" + + "(\01323.google.cloud.websecurityscanner.v1." + + "ScanConfigError\022#\n\033most_common_http_erro" + + "r_code\030\003 \001(\005\"\270\001\n\004Code\022\024\n\020CODE_UNSPECIFIE" + + "D\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\025\n\021SCAN_CONFIG_I" + + "SSUE\020\002\022\037\n\033AUTHENTICATION_CONFIG_ISSUE\020\003\022" + + "\034\n\030TIMED_OUT_WHILE_SCANNING\020\004\022\026\n\022TOO_MAN" + + "Y_REDIRECTS\020\005\022\030\n\024TOO_MANY_HTTP_ERRORS\020\006B" + + "\212\002\n&com.google.cloud.websecurityscanner." + + "v1B\026ScanRunErrorTraceProtoP\001ZTgoogle.gol" + + "ang.org/genproto/googleapis/cloud/websec" + + "urityscanner/v1;websecurityscanner\252\002\"Goo" + + "gle.Cloud.WebSecurityScanner.V1\312\002\"Google" + + "\\Cloud\\WebSecurityScanner\\V1\352\002%Google::C" + + "loud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor, + new java.lang.String[] { "Code", "ScanConfigError", "MostCommonHttpErrorCode", }); + com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java index 41c4f179..498e6090 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_run_log.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A ScanRunLog is an output-only proto used for Stackdriver customer logging.
  * It is used for logs covering the start and end of scan pipelines.
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunLog}
  */
-public final class ScanRunLog extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRunLog extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRunLog)
     ScanRunLogOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRunLog.newBuilder() to construct.
   private ScanRunLog(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRunLog() {
     summary_ = "";
     name_ = "";
@@ -50,15 +32,16 @@ private ScanRunLog() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunLog();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRunLog(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,73 +60,65 @@ private ScanRunLog(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              summary_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            summary_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              executionState_ = rawValue;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            executionState_ = rawValue;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              resultState_ = rawValue;
-              break;
-            }
-          case 40:
-            {
-              urlsCrawledCount_ = input.readInt64();
-              break;
-            }
-          case 48:
-            {
-              urlsTestedCount_ = input.readInt64();
-              break;
-            }
-          case 56:
-            {
-              hasFindings_ = input.readBool();
-              break;
+            resultState_ = rawValue;
+            break;
+          }
+          case 40: {
+
+            urlsCrawledCount_ = input.readInt64();
+            break;
+          }
+          case 48: {
+
+            urlsTestedCount_ = input.readInt64();
+            break;
+          }
+          case 56: {
+
+            hasFindings_ = input.readBool();
+            break;
+          }
+          case 66: {
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
+            if (errorTrace_ != null) {
+              subBuilder = errorTrace_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
-              if (errorTrace_ != null) {
-                subBuilder = errorTrace_.toBuilder();
-              }
-              errorTrace_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(errorTrace_);
-                errorTrace_ = subBuilder.buildPartial();
-              }
-
-              break;
+            errorTrace_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(errorTrace_);
+              errorTrace_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -151,39 +126,34 @@ private ScanRunLog(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRunLog.class,
-            com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRunLog.class, com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class);
   }
 
   public static final int SUMMARY_FIELD_NUMBER = 1;
   private volatile java.lang.Object summary_;
   /**
-   *
-   *
    * 
    * Human friendly message about the event.
    * 
* * string summary = 1; - * * @return The summary. */ @java.lang.Override @@ -192,29 +162,29 @@ public java.lang.String getSummary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } } /** - * - * *
    * Human friendly message about the event.
    * 
* * string summary = 1; - * * @return The bytes for summary. */ @java.lang.Override - public com.google.protobuf.ByteString getSummaryBytes() { + public com.google.protobuf.ByteString + getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); summary_ = b; return b; } else { @@ -225,14 +195,11 @@ public com.google.protobuf.ByteString getSummaryBytes() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -241,29 +208,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -274,84 +241,61 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 3; private int executionState_; /** - * - * *
    * The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; - * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
    * The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; - * * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; } public static final int RESULT_STATE_FIELD_NUMBER = 4; private int resultState_; /** - * - * *
    * The result state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
    * The result state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; } public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 5; private long urlsCrawledCount_; /** * int64 urls_crawled_count = 5; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -363,7 +307,6 @@ public long getUrlsCrawledCount() { private long urlsTestedCount_; /** * int64 urls_tested_count = 6; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -375,7 +318,6 @@ public long getUrlsTestedCount() { private boolean hasFindings_; /** * bool has_findings = 7; - * * @return The hasFindings. */ @java.lang.Override @@ -387,7 +329,6 @@ public boolean getHasFindings() { private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - * * @return Whether the errorTrace field is set. */ @java.lang.Override @@ -396,24 +337,21 @@ public boolean hasErrorTrace() { } /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - * * @return The errorTrace. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder - getErrorTraceOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() { return getErrorTrace(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -425,21 +363,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, summary_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED - .getNumber()) { + if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { + if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, resultState_); } if (urlsCrawledCount_ != 0L) { @@ -469,27 +404,29 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, executionState_); + if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, resultState_); + if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, resultState_); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, urlsTestedCount_); } if (hasFindings_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, hasFindings_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, hasFindings_); } if (errorTrace_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getErrorTrace()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getErrorTrace()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -499,24 +436,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRunLog)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRunLog other = - (com.google.cloud.websecurityscanner.v1.ScanRunLog) obj; + com.google.cloud.websecurityscanner.v1.ScanRunLog other = (com.google.cloud.websecurityscanner.v1.ScanRunLog) obj; - if (!getSummary().equals(other.getSummary())) return false; - if (!getName().equals(other.getName())) return false; + if (!getSummary() + .equals(other.getSummary())) return false; + if (!getName() + .equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; - if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; - if (getHasFindings() != other.getHasFindings()) return false; + if (getUrlsCrawledCount() + != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() + != other.getUrlsTestedCount()) return false; + if (getHasFindings() + != other.getHasFindings()) return false; if (hasErrorTrace() != other.hasErrorTrace()) return false; if (hasErrorTrace()) { - if (!getErrorTrace().equals(other.getErrorTrace())) return false; + if (!getErrorTrace() + .equals(other.getErrorTrace())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -538,11 +480,14 @@ public int hashCode() { hash = (37 * hash) + RESULT_STATE_FIELD_NUMBER; hash = (53 * hash) + resultState_; hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsTestedCount()); hash = (37 * hash) + HAS_FINDINGS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasFindings()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasFindings()); if (hasErrorTrace()) { hash = (37 * hash) + ERROR_TRACE_FIELD_NUMBER; hash = (53 * hash) + getErrorTrace().hashCode(); @@ -553,103 +498,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRunLog prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanRunLog is an output-only proto used for Stackdriver customer logging.
    * It is used for logs covering the start and end of scan pipelines.
@@ -660,23 +598,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunLog}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRunLog)
       com.google.cloud.websecurityscanner.v1.ScanRunLogOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRunLog.class,
-              com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRunLog.class, com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRunLog.newBuilder()
@@ -684,15 +620,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -720,9 +657,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
     }
 
     @java.lang.Override
@@ -741,8 +678,7 @@ public com.google.cloud.websecurityscanner.v1.ScanRunLog build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRunLog buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRunLog result =
-          new com.google.cloud.websecurityscanner.v1.ScanRunLog(this);
+      com.google.cloud.websecurityscanner.v1.ScanRunLog result = new com.google.cloud.websecurityscanner.v1.ScanRunLog(this);
       result.summary_ = summary_;
       result.name_ = name_;
       result.executionState_ = executionState_;
@@ -763,39 +699,38 @@ public com.google.cloud.websecurityscanner.v1.ScanRunLog buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRunLog) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunLog) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunLog)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -803,8 +738,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunLog other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanRunLog.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanRunLog.getDefaultInstance()) return this;
       if (!other.getSummary().isEmpty()) {
         summary_ = other.summary_;
         onChanged();
@@ -850,8 +784,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.ScanRunLog) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRunLog) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -863,20 +796,18 @@ public Builder mergeFrom(
 
     private java.lang.Object summary_ = "";
     /**
-     *
-     *
      * 
      * Human friendly message about the event.
      * 
* * string summary = 1; - * * @return The summary. */ public java.lang.String getSummary() { java.lang.Object ref = summary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; @@ -885,21 +816,20 @@ public java.lang.String getSummary() { } } /** - * - * *
      * Human friendly message about the event.
      * 
* * string summary = 1; - * * @return The bytes for summary. */ - public com.google.protobuf.ByteString getSummaryBytes() { + public com.google.protobuf.ByteString + getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); summary_ = b; return b; } else { @@ -907,61 +837,54 @@ public com.google.protobuf.ByteString getSummaryBytes() { } } /** - * - * *
      * Human friendly message about the event.
      * 
* * string summary = 1; - * * @param value The summary to set. * @return This builder for chaining. */ - public Builder setSummary(java.lang.String value) { + public Builder setSummary( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + summary_ = value; onChanged(); return this; } /** - * - * *
      * Human friendly message about the event.
      * 
* * string summary = 1; - * * @return This builder for chaining. */ public Builder clearSummary() { - + summary_ = getDefaultInstance().getSummary(); onChanged(); return this; } /** - * - * *
      * Human friendly message about the event.
      * 
* * string summary = 1; - * * @param value The bytes for summary to set. * @return This builder for chaining. */ - public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + public Builder setSummaryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; onChanged(); return this; @@ -969,20 +892,18 @@ public Builder setSummaryBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -991,21 +912,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1013,61 +933,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1075,93 +988,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int executionState_ = 0; /** - * - * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; - * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; - * * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; - * * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; - * * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState( - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { + public Builder setExecutionState(com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; - * * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1169,102 +1062,81 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** - * - * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; - * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; - * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; } /** - * - * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; - * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState( - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { + public Builder setResultState(com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; - * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; } - private long urlsCrawledCount_; + private long urlsCrawledCount_ ; /** * int64 urls_crawled_count = 5; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -1273,32 +1145,29 @@ public long getUrlsCrawledCount() { } /** * int64 urls_crawled_count = 5; - * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** * int64 urls_crawled_count = 5; - * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_; + private long urlsTestedCount_ ; /** * int64 urls_tested_count = 6; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -1307,32 +1176,29 @@ public long getUrlsTestedCount() { } /** * int64 urls_tested_count = 6; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** * int64 urls_tested_count = 6; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasFindings_; + private boolean hasFindings_ ; /** * bool has_findings = 7; - * * @return The hasFindings. */ @java.lang.Override @@ -1341,23 +1207,21 @@ public boolean getHasFindings() { } /** * bool has_findings = 7; - * * @param value The hasFindings to set. * @return This builder for chaining. */ public Builder setHasFindings(boolean value) { - + hasFindings_ = value; onChanged(); return this; } /** * bool has_findings = 7; - * * @return This builder for chaining. */ public Builder clearHasFindings() { - + hasFindings_ = false; onChanged(); return this; @@ -1365,13 +1229,9 @@ public Builder clearHasFindings() { private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> - errorTraceBuilder_; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> errorTraceBuilder_; /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - * * @return Whether the errorTrace field is set. */ public boolean hasErrorTrace() { @@ -1379,19 +1239,18 @@ public boolean hasErrorTrace() { } /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - * * @return The errorTrace. */ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { if (errorTraceBuilder_ == null) { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } else { return errorTraceBuilder_.getMessage(); } } - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace value) { if (errorTraceBuilder_ == null) { if (value == null) { @@ -1405,7 +1264,9 @@ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunError return this; } - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ public Builder setErrorTrace( com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder builderForValue) { if (errorTraceBuilder_ == null) { @@ -1417,14 +1278,14 @@ public Builder setErrorTrace( return this; } - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace value) { if (errorTraceBuilder_ == null) { if (errorTrace_ != null) { errorTrace_ = - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_).mergeFrom(value).buildPartial(); } else { errorTrace_ = value; } @@ -1435,7 +1296,9 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr return this; } - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ public Builder clearErrorTrace() { if (errorTraceBuilder_ == null) { errorTrace_ = null; @@ -1447,43 +1310,44 @@ public Builder clearErrorTrace() { return this; } - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getErrorTraceBuilder() { - + onChanged(); return getErrorTraceFieldBuilder().getBuilder(); } - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ - public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder - getErrorTraceOrBuilder() { + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() { if (errorTraceBuilder_ != null) { return errorTraceBuilder_.getMessageOrBuilder(); } else { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } } - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> getErrorTraceFieldBuilder() { if (errorTraceBuilder_ == null) { - errorTraceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>( - getErrorTrace(), getParentForChildren(), isClean()); + errorTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>( + getErrorTrace(), + getParentForChildren(), + isClean()); errorTrace_ = null; } return errorTraceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1493,12 +1357,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRunLog) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRunLog) private static final com.google.cloud.websecurityscanner.v1.ScanRunLog DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRunLog(); } @@ -1507,16 +1371,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRunLog getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunLog(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunLog(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1531,4 +1395,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunLog getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java similarity index 75% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java index 6f48da20..daef3296 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java @@ -1,161 +1,120 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_run_log.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunLogOrBuilder - extends +public interface ScanRunLogOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunLog) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Human friendly message about the event.
    * 
* * string summary = 1; - * * @return The summary. */ java.lang.String getSummary(); /** - * - * *
    * Human friendly message about the event.
    * 
* * string summary = 1; - * * @return The bytes for summary. */ - com.google.protobuf.ByteString getSummaryBytes(); + com.google.protobuf.ByteString + getSummaryBytes(); /** - * - * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; - * * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; - * * @return The executionState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState(); /** - * - * *
    * The result state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; - * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** - * - * *
    * The result state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; - * * @return The resultState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState(); /** * int64 urls_crawled_count = 5; - * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** * int64 urls_tested_count = 6; - * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** * bool has_findings = 7; - * * @return The hasFindings. */ boolean getHasFindings(); /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - * * @return Whether the errorTrace field is set. */ boolean hasErrorTrace(); /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - * * @return The errorTrace. */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace(); - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java new file mode 100644 index 00000000..b5c8efb4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_log.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunLogProto { + private ScanRunLogProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/websecurityscanner/v1/sca" + + "n_run_log.proto\022\"google.cloud.websecurit" + + "yscanner.v1\0321google/cloud/websecuritysca" + + "nner/v1/scan_run.proto\032=google/cloud/web" + + "securityscanner/v1/scan_run_error_trace." + + "proto\"\350\002\n\nScanRunLog\022\017\n\007summary\030\001 \001(\t\022\014\n" + + "\004name\030\002 \001(\t\022S\n\017execution_state\030\003 \001(\0162:.g" + + "oogle.cloud.websecurityscanner.v1.ScanRu" + + "n.ExecutionState\022M\n\014result_state\030\004 \001(\01627" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Run.ResultState\022\032\n\022urls_crawled_count\030\005 " + + "\001(\003\022\031\n\021urls_tested_count\030\006 \001(\003\022\024\n\014has_fi" + + "ndings\030\007 \001(\010\022J\n\013error_trace\030\010 \001(\01325.goog" + + "le.cloud.websecurityscanner.v1.ScanRunEr" + + "rorTraceB\203\002\n&com.google.cloud.websecurit" + + "yscanner.v1B\017ScanRunLogProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor, + new java.lang.String[] { "Summary", "Name", "ExecutionState", "ResultState", "UrlsCrawledCount", "UrlsTestedCount", "HasFindings", "ErrorTrace", }); + com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java similarity index 85% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java index 1a42828e..cba66f0a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_run.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunOrBuilder - extends +public interface ScanRunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -33,13 +15,10 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -47,90 +26,70 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** - * - * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The executionState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState(); /** - * - * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** - * - * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState(); /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
@@ -140,34 +99,26 @@ public interface ScanRunOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -178,22 +129,17 @@ public interface ScanRunOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** - * - * *
    * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -202,27 +148,21 @@ public interface ScanRunOrBuilder
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** - * - * *
    * Output only. Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ boolean getHasVulnerabilities(); /** - * - * *
    * Output only. The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -231,40 +171,31 @@ public interface ScanRunOrBuilder
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ boolean hasErrorTrace(); /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace(); /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -275,59 +206,45 @@ public interface ScanRunOrBuilder
   com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - java.util.List getWarningTracesList(); + java.util.List + getWarningTracesList(); /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTraces(int index); /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ int getWarningTracesCount(); /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - java.util.List + java.util.List getWarningTracesOrBuilderList(); /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java new file mode 100644 index 00000000..0859f5e4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java @@ -0,0 +1,82 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunProto { + private ScanRunProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/websecurityscanner/v1/sca" + + "n_run.proto\022\"google.cloud.websecuritysca" + + "nner.v1\032=google/cloud/websecurityscanner" + + "/v1/scan_run_error_trace.proto\032?google/c" + + "loud/websecurityscanner/v1/scan_run_warn" + + "ing_trace.proto\032\037google/protobuf/timesta" + + "mp.proto\"\320\005\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022S\n\017ex" + + "ecution_state\030\002 \001(\0162:.google.cloud.webse" + + "curityscanner.v1.ScanRun.ExecutionState\022" + + "M\n\014result_state\030\003 \001(\01627.google.cloud.web" + + "securityscanner.v1.ScanRun.ResultState\022." + + "\n\nstart_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\005 \001(\0132\032.google.protob" + + "uf.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003" + + "\022\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulne" + + "rabilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001" + + "(\005\022J\n\013error_trace\030\n \001(\01325.google.cloud.w" + + "ebsecurityscanner.v1.ScanRunErrorTrace\022O" + + "\n\016warning_traces\030\013 \003(\01327.google.cloud.we" + + "bsecurityscanner.v1.ScanRunWarningTrace\"" + + "Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_UNS" + + "PECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014\n\010" + + "FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_STAT" + + "E_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\022" + + "\n\n\006KILLED\020\003B\200\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\014ScanRunProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor, + new java.lang.String[] { "Name", "ExecutionState", "ResultState", "StartTime", "EndTime", "UrlsCrawledCount", "UrlsTestedCount", "HasVulnerabilities", "ProgressPercent", "ErrorTrace", "WarningTraces", }); + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java index fd04b91e..f050bbac 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Output only.
  * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunWarningTrace}
  */
-public final class ScanRunWarningTrace extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRunWarningTrace extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRunWarningTrace)
     ScanRunWarningTraceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRunWarningTrace.newBuilder() to construct.
   private ScanRunWarningTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRunWarningTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunWarningTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRunWarningTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,20 +55,19 @@ private ScanRunWarningTrace(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            code_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,31 +75,27 @@ private ScanRunWarningTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class,
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines a warning message code.
@@ -126,10 +104,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -138,8 +115,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -150,8 +125,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     INSUFFICIENT_CRAWL_RESULTS(1),
     /**
-     *
-     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -161,8 +134,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_CRAWL_RESULTS(2),
     /**
-     *
-     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -173,8 +144,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -182,12 +151,18 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * BLOCKED_BY_IAP = 4; */ BLOCKED_BY_IAP(4), + /** + *
+     * Indicates that no seeds is found for a scan
+     * 
+ * + * NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5; + */ + NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN(5), UNRECOGNIZED(-1), ; /** - * - * *
      * Default value is never used.
      * 
@@ -196,8 +171,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -208,8 +181,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INSUFFICIENT_CRAWL_RESULTS_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -219,8 +190,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_CRAWL_RESULTS_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -231,8 +200,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_FUZZ_TASKS_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -240,6 +207,15 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * BLOCKED_BY_IAP = 4; */ public static final int BLOCKED_BY_IAP_VALUE = 4; + /** + *
+     * Indicates that no seeds is found for a scan
+     * 
+ * + * NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5; + */ + public static final int NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -265,55 +241,52 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return INSUFFICIENT_CRAWL_RESULTS; - case 2: - return TOO_MANY_CRAWL_RESULTS; - case 3: - return TOO_MANY_FUZZ_TASKS; - case 4: - return BLOCKED_BY_IAP; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return INSUFFICIENT_CRAWL_RESULTS; + case 2: return TOO_MANY_CRAWL_RESULTS; + case 3: return TOO_MANY_FUZZ_TASKS; + case 4: return BLOCKED_BY_IAP; + case 5: return NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -333,43 +306,31 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,10 +342,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } unknownFields.writeTo(output); @@ -396,10 +356,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,13 +368,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace other = - (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) obj; + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace other = (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -437,104 +395,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output only.
    * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -543,23 +493,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunWarningTrace}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRunWarningTrace)
       com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class,
-              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.newBuilder()
@@ -567,15 +515,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -585,9 +534,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
@@ -606,8 +555,7 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace result =
-          new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(this);
+      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace result = new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(this);
       result.code_ = code_;
       onBuilt();
       return result;
@@ -617,39 +565,38 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -657,8 +604,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -681,8 +627,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -694,67 +639,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -762,31 +691,28 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrac if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -796,12 +722,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRunWarningTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRunWarningTrace) private static final com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(); } @@ -810,16 +736,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunWarningTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunWarningTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunWarningTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunWarningTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,4 +760,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java index 1586e0e0..bfd08704 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java @@ -1,49 +1,27 @@ -/* - * 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/cloud/websecurityscanner/v1/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunWarningTraceOrBuilder - extends +public interface ScanRunWarningTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunWarningTrace) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java new file mode 100644 index 00000000..93d76564 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunWarningTraceProto { + private ScanRunWarningTraceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1/sca" + + "n_run_warning_trace.proto\022\"google.cloud." + + "websecurityscanner.v1\"\225\002\n\023ScanRunWarning" + + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" + + "curityscanner.v1.ScanRunWarningTrace.Cod" + + "e\"\261\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" + + "FFICIENT_CRAWL_RESULTS\020\001\022\032\n\026TOO_MANY_CRA" + + "WL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZZ_TASKS\020\003\022\022\n" + + "\016BLOCKED_BY_IAP\020\004\022*\n&NO_STARTING_URL_FOU" + + "ND_FOR_MANAGED_SCAN\020\005B\214\002\n&com.google.clo" + + "ud.websecurityscanner.v1B\030ScanRunWarning" + + "TraceProtoP\001ZTgoogle.golang.org/genproto" + + "/googleapis/cloud/websecurityscanner/v1;" + + "websecurityscanner\252\002\"Google.Cloud.WebSec" + + "urityScanner.V1\312\002\"Google\\Cloud\\WebSecuri" + + "tyScanner\\V1\352\002%Google::Cloud::WebSecurit" + + "yScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java index 12f6290b..5242da6f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `StartScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StartScanRunRequest} */ -public final class StartScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.StartScanRunRequest) StartScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartScanRunRequest.newBuilder() to construct. private StartScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StartScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private StartScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.StartScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.StartScanRunRequest other = - (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1.StartScanRunRequest other = (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.StartScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StartScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StartScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.StartScanRunRequest) com.google.cloud.websecurityscanner.v1.StartScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.StartScanRunRequest.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; } @java.lang.Override @@ -396,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1.StartScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.StartScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.StartScanRunRequest result = - new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(this); + com.google.cloud.websecurityscanner.v1.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +374,38 @@ public com.google.cloud.websecurityscanner.v1.StartScanRunRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.StartScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.StartScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.StartScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -447,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.StartScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.StartScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.StartScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -472,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,22 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -531,71 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.StartScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.StartScanRunRequest) private static final com.google.cloud.websecurityscanner.v1.StartScanRunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(); } @@ -619,16 +573,16 @@ public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StartScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java index 4529ac02..78720ba5 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface StartScanRunRequestOrBuilder - extends +public interface StartScanRunRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.StartScanRunRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java index 90dc6218..d214a4f4 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `StopScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StopScanRunRequest} */ -public final class StopScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.StopScanRunRequest) StopScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopScanRunRequest.newBuilder() to construct. private StopScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StopScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private StopScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -150,15 +126,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.StopScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.StopScanRunRequest other = - (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1.StopScanRunRequest other = (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.StopScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StopScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StopScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.StopScanRunRequest) com.google.cloud.websecurityscanner.v1.StopScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.StopScanRunRequest.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; } @java.lang.Override @@ -398,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1.StopScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.StopScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.StopScanRunRequest result = - new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(this); + com.google.cloud.websecurityscanner.v1.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1.StopScanRunRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.StopScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.StopScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.StopScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.StopScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.StopScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.StopScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -496,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -520,14 +480,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,8 +496,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -544,22 +503,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -567,18 +524,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -586,23 +540,23 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.StopScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.StopScanRunRequest) private static final com.google.cloud.websecurityscanner.v1.StopScanRunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(); } @@ -626,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java index 8201e67e..f48ebe77 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface StopScanRunRequestOrBuilder - extends +public interface StopScanRunRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.StopScanRunRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -33,13 +15,10 @@ public interface StopScanRunRequestOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -47,8 +26,8 @@ public interface StopScanRunRequestOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java index 0564c177..14fd5588 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java @@ -1,55 +1,39 @@ -/* - * 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/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `UpdateScanConfigRequest` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} */ -public final class UpdateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) UpdateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateScanConfigRequest.newBuilder() to construct. private UpdateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateScanConfigRequest() {} + private UpdateScanConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateScanConfigRequest( case 0: done = true; break; - case 18: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +92,29 @@ private UpdateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); } public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -148,7 +122,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -156,8 +129,6 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -165,18 +136,13 @@ public boolean hasScanConfig() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -193,8 +159,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
   public static final int UPDATE_MASK_FIELD_NUMBER = 3;
   private com.google.protobuf.FieldMask updateMask_;
   /**
-   *
-   *
    * 
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -202,7 +166,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -210,8 +173,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -219,7 +180,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -227,8 +187,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -243,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -255,7 +212,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (scanConfig_ != null) {
       output.writeMessage(2, getScanConfig());
     }
@@ -272,10 +230,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (scanConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getScanConfig());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -285,21 +245,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest other =
-        (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) obj;
+    com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) obj;
 
     if (hasScanConfig() != other.hasScanConfig()) return false;
     if (hasScanConfig()) {
-      if (!getScanConfig().equals(other.getScanConfig())) return false;
+      if (!getScanConfig()
+          .equals(other.getScanConfig())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -326,127 +287,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request for the `UpdateScanConfigRequest` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.newBuilder() @@ -454,15 +405,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +434,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance(); } @@ -504,8 +455,7 @@ public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest(this); if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; } else { @@ -524,39 +474,38 @@ public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -564,9 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance()) return this; if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } @@ -592,9 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,13 +551,8 @@ public Builder mergeFrom( private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -620,15 +560,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -636,21 +573,16 @@ public boolean hasScanConfig() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -673,8 +605,6 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig v
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -695,8 +625,6 @@ public Builder setScanConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -709,9 +637,7 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig
       if (scanConfigBuilder_ == null) {
         if (scanConfig_ != null) {
           scanConfig_ =
-              com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial();
         } else {
           scanConfig_ = value;
         }
@@ -723,8 +649,6 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -745,8 +669,6 @@ public Builder clearScanConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -756,13 +678,11 @@ public Builder clearScanConfig() {
      * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2;
      */
     public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBuilder() {
-
+      
       onChanged();
       return getScanConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -775,14 +695,11 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
       if (scanConfigBuilder_ != null) {
         return scanConfigBuilder_.getMessageOrBuilder();
       } else {
-        return scanConfig_ == null
-            ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()
-            : scanConfig_;
+        return scanConfig_ == null ?
+            com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -792,17 +709,14 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
      * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanConfig,
-            com.google.cloud.websecurityscanner.v1.ScanConfig.Builder,
-            com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>
+        com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> 
         getScanConfigFieldBuilder() {
       if (scanConfigBuilder_ == null) {
-        scanConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.ScanConfig,
-                com.google.cloud.websecurityscanner.v1.ScanConfig.Builder,
-                com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>(
-                getScanConfig(), getParentForChildren(), isClean());
+        scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>(
+                getScanConfig(),
+                getParentForChildren(),
+                isClean());
         scanConfig_ = null;
       }
       return scanConfigBuilder_;
@@ -810,13 +724,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        updateMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -824,15 +733,12 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -840,21 +746,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -877,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -887,7 +786,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -898,8 +798,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -912,7 +810,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -924,8 +822,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -946,8 +842,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -957,13 +851,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -976,14 +868,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -993,24 +882,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1020,32 +906,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
-  private static final com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest();
   }
 
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
-      getDefaultInstance() {
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateScanConfigRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateScanConfigRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateScanConfigRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateScanConfigRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1057,8 +941,9 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
similarity index 78%
rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
index 84d3918a..ca4f2db0 100644
--- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * 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/cloud/websecurityscanner/v1/web_security_scanner.proto
 
 package com.google.cloud.websecurityscanner.v1;
 
-public interface UpdateScanConfigRequestOrBuilder
-    extends
+public interface UpdateScanConfigRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -33,13 +15,10 @@ public interface UpdateScanConfigRequestOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -47,13 +26,10 @@ public interface UpdateScanConfigRequestOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -65,8 +41,6 @@ public interface UpdateScanConfigRequestOrBuilder
   com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -74,13 +48,10 @@ public interface UpdateScanConfigRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -88,13 +59,10 @@ public interface UpdateScanConfigRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
similarity index 70%
rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
index 39b38306..09269afb 100644
--- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
+++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
@@ -1,26 +1,9 @@
-/*
- * 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/cloud/websecurityscanner/v1/finding_addon.proto
 
 package com.google.cloud.websecurityscanner.v1;
 
 /**
- *
- *
  * 
  * Information regarding any resource causing the vulnerability such
  * as JavaScript sources, image, audio files, etc.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ViolatingResource}
  */
-public final class ViolatingResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ViolatingResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ViolatingResource)
     ViolatingResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ViolatingResource.newBuilder() to construct.
   private ViolatingResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ViolatingResource() {
     contentType_ = "";
     resourceUrl_ = "";
@@ -45,15 +27,16 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ViolatingResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private ViolatingResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              contentType_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            contentType_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceUrl_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            resourceUrl_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +81,34 @@ private ViolatingResource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.class,
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.class, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
   }
 
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object contentType_;
   /**
-   *
-   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ @java.lang.Override @@ -141,29 +117,29 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -174,14 +150,11 @@ public com.google.protobuf.ByteString getContentTypeBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object resourceUrl_; /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ @java.lang.Override @@ -190,29 +163,29 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -221,7 +194,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -263,16 +236,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ViolatingResource)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ViolatingResource other = - (com.google.cloud.websecurityscanner.v1.ViolatingResource) obj; + com.google.cloud.websecurityscanner.v1.ViolatingResource other = (com.google.cloud.websecurityscanner.v1.ViolatingResource) obj; - if (!getContentType().equals(other.getContentType())) return false; - if (!getResourceUrl().equals(other.getResourceUrl())) return false; + if (!getContentType() + .equals(other.getContentType())) return false; + if (!getResourceUrl() + .equals(other.getResourceUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +268,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ViolatingResource prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ViolatingResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information regarding any resource causing the vulnerability such
    * as JavaScript sources, image, audio files, etc.
@@ -399,23 +365,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ViolatingResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ViolatingResource)
       com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.class,
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ViolatingResource.class, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder()
@@ -423,15 +387,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -443,9 +408,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
@@ -464,8 +429,7 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ViolatingResource buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ViolatingResource result =
-          new com.google.cloud.websecurityscanner.v1.ViolatingResource(this);
+      com.google.cloud.websecurityscanner.v1.ViolatingResource result = new com.google.cloud.websecurityscanner.v1.ViolatingResource(this);
       result.contentType_ = contentType_;
       result.resourceUrl_ = resourceUrl_;
       onBuilt();
@@ -476,39 +440,38 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ViolatingResource) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ViolatingResource) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ViolatingResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ViolatingResource other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()) return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -545,8 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.ViolatingResource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.ViolatingResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -558,20 +519,18 @@ public Builder mergeFrom(
 
     private java.lang.Object contentType_ = "";
     /**
-     *
-     *
      * 
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; @@ -580,21 +539,20 @@ public java.lang.String getContentType() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -602,61 +560,54 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType(java.lang.String value) { + public Builder setContentType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -664,20 +615,18 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -686,21 +635,20 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -708,68 +656,61 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -779,12 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ViolatingResource) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ViolatingResource) private static final com.google.cloud.websecurityscanner.v1.ViolatingResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ViolatingResource(); } @@ -793,16 +734,16 @@ public static com.google.cloud.websecurityscanner.v1.ViolatingResource getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViolatingResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolatingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ViolatingResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,4 +758,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java index ba3decef..e4000fa5 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface ViolatingResourceOrBuilder - extends +public interface ViolatingResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ViolatingResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ java.lang.String getContentType(); /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - com.google.protobuf.ByteString getContentTypeBytes(); + com.google.protobuf.ByteString + getContentTypeBytes(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java index f1b41ec6..5742f73f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Information about vulnerable or missing HTTP Headers.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders} */ -public final class VulnerableHeaders extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableHeaders extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders) VulnerableHeadersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableHeaders.newBuilder() to construct. private VulnerableHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableHeaders() { headers_ = java.util.Collections.emptyList(); missingHeaders_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableHeaders(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableHeaders( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,41 +55,31 @@ private VulnerableHeaders( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000002; - } - missingHeaders_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + headers_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingHeaders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + missingHeaders_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,7 +87,8 @@ private VulnerableHeaders( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -126,96 +100,79 @@ private VulnerableHeaders( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); } - public interface HeaderOrBuilder - extends + public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * Describes a HTTP Header.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} */ - public static final class Header extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Header extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Header() { name_ = ""; value_ = ""; @@ -223,15 +180,16 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -250,27 +208,25 @@ private Header( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -278,39 +234,34 @@ private Header( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -319,29 +270,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -352,14 +303,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -368,29 +316,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -399,7 +347,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,7 +358,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -441,16 +389,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) obj; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,95 +421,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -570,49 +511,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes a HTTP Header.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -624,14 +560,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance(); } @@ -646,8 +581,7 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header buildPartial() { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result = - new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(this); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -658,52 +592,46 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other) { - if (other - == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other) { + if (other == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -731,9 +659,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -745,20 +671,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,21 +691,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -789,61 +712,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -851,20 +767,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -873,21 +787,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -895,66 +808,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -967,32 +872,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) - private static final com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -1004,17 +907,15 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HEADERS_FIELD_NUMBER = 1; private java.util.List headers_; /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1022,13 +923,10 @@ public com.google.protobuf.Parser
getParserForType() { * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1036,14 +934,11 @@ public com.google.protobuf.Parser
getParserForType() { * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getHeadersOrBuilderList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1055,8 +950,6 @@ public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1068,8 +961,6 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader return headers_.get(index); } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1077,97 +968,72 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { return headers_.get(index); } public static final int MISSING_HEADERS_FIELD_NUMBER = 2; - private java.util.List - missingHeaders_; + private java.util.List missingHeaders_; /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getMissingHeadersOrBuilderList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override public int getMissingHeadersCount() { return missingHeaders_.size(); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders(int index) { return missingHeaders_.get(index); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { return missingHeaders_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1179,7 +1045,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } @@ -1196,10 +1063,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, headers_.get(i)); } for (int i = 0; i < missingHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, missingHeaders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1209,16 +1078,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.VulnerableHeaders other = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) obj; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders other = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) obj; - if (!getHeadersList().equals(other.getHeadersList())) return false; - if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; + if (!getHeadersList() + .equals(other.getHeadersList())) return false; + if (!getMissingHeadersList() + .equals(other.getMissingHeadersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1244,127 +1114,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.VulnerableHeaders prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable or missing HTTP Headers.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders) com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder() @@ -1372,18 +1232,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHeadersFieldBuilder(); getMissingHeadersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1403,9 +1263,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; } @java.lang.Override @@ -1424,8 +1284,7 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableHeaders buildPartial() { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders result = - new com.google.cloud.websecurityscanner.v1.VulnerableHeaders(this); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders result = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1453,39 +1312,38 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders)other); } else { super.mergeFrom(other); return this; @@ -1493,8 +1351,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeaders other) { - if (other == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { @@ -1513,10 +1370,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeader headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHeadersFieldBuilder() - : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -1540,10 +1396,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeader missingHeadersBuilder_ = null; missingHeaders_ = other.missingHeaders_; bitField0_ = (bitField0_ & ~0x00000002); - missingHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMissingHeadersFieldBuilder() - : null; + missingHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMissingHeadersFieldBuilder() : null; } else { missingHeadersBuilder_.addAllMessages(other.missingHeaders_); } @@ -1568,8 +1423,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1578,39 +1432,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - headers_ = java.util.Collections.emptyList(); - + private java.util.List headers_ = + java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(headers_); + headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> - headersBuilder_; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> headersBuilder_; /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { @@ -1618,14 +1461,11 @@ private void ensureHeadersIsMutable() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public int getHeadersCount() { if (headersBuilder_ == null) { @@ -1635,14 +1475,11 @@ public int getHeadersCount() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeaders(int index) { if (headersBuilder_ == null) { @@ -1652,14 +1489,11 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -1676,18 +1510,14 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( - int index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); @@ -1698,17 +1528,13 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public Builder addHeaders( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { + public Builder addHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1722,14 +1548,11 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -1746,14 +1569,11 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { @@ -1767,18 +1587,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - int index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); @@ -1789,22 +1605,18 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder addAllHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1812,14 +1624,11 @@ public Builder addAllHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder clearHeaders() { if (headersBuilder_ == null) { @@ -1832,14 +1641,11 @@ public Builder clearHeaders() { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { @@ -1852,50 +1658,39 @@ public Builder removeHeaders(int index) { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - getHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder getHeadersBuilder( + int index) { return getHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { if (headersBuilder_ == null) { - return headers_.get(index); - } else { + return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1903,101 +1698,74 @@ public Builder removeHeaders(int index) { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - addHeadersBuilder() { - return getHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addHeadersBuilder() { + return getHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - addHeadersBuilder(int index) { - return getHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addHeadersBuilder( + int index) { + return getHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public java.util.List - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( - headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( + headers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); headers_ = null; } return headersBuilder_; } - private java.util.List - missingHeaders_ = java.util.Collections.emptyList(); - + private java.util.List missingHeaders_ = + java.util.Collections.emptyList(); private void ensureMissingHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(missingHeaders_); + missingHeaders_ = new java.util.ArrayList(missingHeaders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> - missingHeadersBuilder_; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> missingHeadersBuilder_; /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { if (missingHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(missingHeaders_); } else { @@ -2005,15 +1773,11 @@ private void ensureMissingHeadersIsMutable() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public int getMissingHeadersCount() { if (missingHeadersBuilder_ == null) { @@ -2023,18 +1787,13 @@ public int getMissingHeadersCount() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { return missingHeaders_.get(index); } else { @@ -2042,15 +1801,11 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissin } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -2067,19 +1822,14 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.set(index, builderForValue.build()); @@ -2090,18 +1840,13 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { + public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { if (missingHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2115,15 +1860,11 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -2140,15 +1881,11 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { @@ -2162,19 +1899,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(index, builderForValue.build()); @@ -2185,23 +1917,18 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder addAllMissingHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingHeaders_); onChanged(); } else { missingHeadersBuilder_.addAllMessages(values); @@ -2209,15 +1936,11 @@ public Builder addAllMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder clearMissingHeaders() { if (missingHeadersBuilder_ == null) { @@ -2230,15 +1953,11 @@ public Builder clearMissingHeaders() { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder removeMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { @@ -2251,53 +1970,39 @@ public Builder removeMissingHeaders(int index) { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - getMissingHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder getMissingHeadersBuilder( + int index) { return getMissingHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { if (missingHeadersBuilder_ == null) { - return missingHeaders_.get(index); - } else { + return missingHeaders_.get(index); } else { return missingHeadersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> - getMissingHeadersOrBuilderList() { + public java.util.List + getMissingHeadersOrBuilderList() { if (missingHeadersBuilder_ != null) { return missingHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -2305,67 +2010,45 @@ public Builder removeMissingHeaders(int index) { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder() { - return getMissingHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addMissingHeadersBuilder() { + return getMissingHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder(int index) { - return getMissingHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addMissingHeadersBuilder( + int index) { + return getMissingHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List - getMissingHeadersBuilderList() { + public java.util.List + getMissingHeadersBuilderList() { return getMissingHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersFieldBuilder() { if (missingHeadersBuilder_ == null) { - missingHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( + missingHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( missingHeaders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2374,9 +2057,9 @@ public Builder removeMissingHeaders(int index) { } return missingHeadersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2386,12 +2069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders) private static final com.google.cloud.websecurityscanner.v1.VulnerableHeaders DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders(); } @@ -2400,16 +2083,16 @@ public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableHeaders parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableHeaders(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2424,4 +2107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java index 742d0ca4..0c7a2d04 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface VulnerableHeadersOrBuilder - extends +public interface VulnerableHeadersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.VulnerableHeaders) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of vulnerable headers.
    * 
* * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - java.util.List getHeadersList(); + java.util.List + getHeadersList(); /** - * - * *
    * List of vulnerable headers.
    * 
@@ -44,8 +25,6 @@ public interface VulnerableHeadersOrBuilder */ com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeaders(int index); /** - * - * *
    * List of vulnerable headers.
    * 
@@ -54,19 +33,15 @@ public interface VulnerableHeadersOrBuilder */ int getHeadersCount(); /** - * - * *
    * List of vulnerable headers.
    * 
* * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - java.util.List + java.util.List getHeadersOrBuilderList(); /** - * - * *
    * List of vulnerable headers.
    * 
@@ -77,66 +52,46 @@ com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getHead int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List + java.util.List getMissingHeadersList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders(int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ int getMissingHeadersCount(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List + java.util.List getMissingHeadersOrBuilderList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java index 86717048..b1a93d91 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Information about vulnerable request parameters.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableParameters} */ -public final class VulnerableParameters extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableParameters extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.VulnerableParameters) VulnerableParametersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableParameters.newBuilder() to construct. private VulnerableParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableParameters() { parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private VulnerableParameters( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameterNames_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parameterNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private VulnerableParameters( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -104,61 +87,50 @@ private VulnerableParameters( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); } public static final int PARAMETER_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList parameterNames_; /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_; } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -166,23 +138,20 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } @@ -223,15 +193,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.VulnerableParameters)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.VulnerableParameters other = - (com.google.cloud.websecurityscanner.v1.VulnerableParameters) obj; + com.google.cloud.websecurityscanner.v1.VulnerableParameters other = (com.google.cloud.websecurityscanner.v1.VulnerableParameters) obj; - if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; + if (!getParameterNamesList() + .equals(other.getParameterNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,127 +223,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableParameters prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.VulnerableParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable request parameters.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableParameters} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.VulnerableParameters) com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder() @@ -381,15 +341,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -399,9 +360,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; } @java.lang.Override @@ -420,8 +381,7 @@ public com.google.cloud.websecurityscanner.v1.VulnerableParameters build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableParameters buildPartial() { - com.google.cloud.websecurityscanner.v1.VulnerableParameters result = - new com.google.cloud.websecurityscanner.v1.VulnerableParameters(this); + com.google.cloud.websecurityscanner.v1.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1.VulnerableParameters(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -436,39 +396,38 @@ public com.google.cloud.websecurityscanner.v1.VulnerableParameters buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.VulnerableParameters) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableParameters) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableParameters)other); } else { super.mergeFrom(other); return this; @@ -476,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableParameters other) { - if (other == com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance()) return this; if (!other.parameterNames_.isEmpty()) { if (parameterNames_.isEmpty()) { parameterNames_ = other.parameterNames_; @@ -507,8 +465,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.VulnerableParameters) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.VulnerableParameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,55 +474,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList parameterNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureParameterNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_.getUnmodifiableView(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -573,90 +519,80 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index to set the value at. * @param value The parameterNames to set. * @return This builder for chaining. */ - public Builder setParameterNames(int index, java.lang.String value) { + public Builder setParameterNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNames(java.lang.String value) { + public Builder addParameterNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param values The parameterNames to add. * @return This builder for chaining. */ - public Builder addAllParameterNames(java.lang.Iterable values) { + public Builder addAllParameterNames( + java.lang.Iterable values) { ensureParameterNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameterNames_); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return This builder for chaining. */ public Builder clearParameterNames() { @@ -666,30 +602,28 @@ public Builder clearParameterNames() { return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The bytes of the parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { + public Builder addParameterNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -699,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.VulnerableParameters) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.VulnerableParameters) private static final com.google.cloud.websecurityscanner.v1.VulnerableParameters DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.VulnerableParameters(); } @@ -713,16 +647,16 @@ public static com.google.cloud.websecurityscanner.v1.VulnerableParameters getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -737,4 +671,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java similarity index 59% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java index edcdf61b..101f456a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java @@ -1,76 +1,50 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface VulnerableParametersOrBuilder - extends +public interface VulnerableParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.VulnerableParameters) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - java.util.List getParameterNamesList(); + java.util.List + getParameterNamesList(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ int getParameterNamesCount(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ java.lang.String getParameterNames(int index); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - com.google.protobuf.ByteString getParameterNamesBytes(int index); + com.google.protobuf.ByteString + getParameterNamesBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java new file mode 100644 index 00000000..724a63bb --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java @@ -0,0 +1,376 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class WebSecurityScannerProto { + private WebSecurityScannerProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1/web" + + "_security_scanner.proto\022\"google.cloud.we" + + "bsecurityscanner.v1\032\034google/api/annotati" + + "ons.proto\032\027google/api/client.proto\0324goog" + + "le/cloud/websecurityscanner/v1/crawled_u" + + "rl.proto\0320google/cloud/websecurityscanne" + + "r/v1/finding.proto\032;google/cloud/websecu" + + "rityscanner/v1/finding_type_stats.proto\032" + + "4google/cloud/websecurityscanner/v1/scan" + + "_config.proto\0321google/cloud/websecuritys" + + "canner/v1/scan_run.proto\032\033google/protobu" + + "f/empty.proto\032 google/protobuf/field_mas" + + "k.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\022C\n\013scan_config\030\002 \001(\0132..google" + + ".cloud.websecurityscanner.v1.ScanConfig\"" + + "\'\n\027DeleteScanConfigRequest\022\014\n\004name\030\001 \001(\t" + + "\"$\n\024GetScanConfigRequest\022\014\n\004name\030\001 \001(\t\"O" + + "\n\026ListScanConfigsRequest\022\016\n\006parent\030\001 \001(\t" + + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"" + + "\217\001\n\027UpdateScanConfigRequest\022C\n\013scan_conf" + + "ig\030\002 \001(\0132..google.cloud.websecurityscann" + + "er.v1.ScanConfig\022/\n\013update_mask\030\003 \001(\0132\032." + + "google.protobuf.FieldMask\"x\n\027ListScanCon" + + "figsResponse\022D\n\014scan_configs\030\001 \003(\0132..goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig\022\027\n\017next_page_token\030\002 \001(\t\"#\n\023StartScan" + + "RunRequest\022\014\n\004name\030\001 \001(\t\"!\n\021GetScanRunRe" + + "quest\022\014\n\004name\030\001 \001(\t\"L\n\023ListScanRunsReque" + + "st\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021" + + "\n\tpage_size\030\003 \001(\005\"o\n\024ListScanRunsRespons" + + "e\022>\n\tscan_runs\030\001 \003(\0132+.google.cloud.webs" + + "ecurityscanner.v1.ScanRun\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\"\n\022StopScanRunRequest\022\014\n\004name" + + "\030\001 \001(\t\"O\n\026ListCrawledUrlsRequest\022\016\n\006pare" + + "nt\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_siz" + + "e\030\003 \001(\005\"x\n\027ListCrawledUrlsResponse\022D\n\014cr" + + "awled_urls\030\001 \003(\0132..google.cloud.websecur" + + "ityscanner.v1.CrawledUrl\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"!\n\021GetFindingRequest\022\014\n\004name\030\001" + + " \001(\t\"\\\n\023ListFindingsRequest\022\016\n\006parent\030\001 " + + "\001(\t\022\016\n\006filter\030\002 \001(\t\022\022\n\npage_token\030\003 \001(\t\022" + + "\021\n\tpage_size\030\004 \001(\005\"n\n\024ListFindingsRespon" + + "se\022=\n\010findings\030\001 \003(\0132+.google.cloud.webs" + + "ecurityscanner.v1.Finding\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"-\n\033ListFindingTypeStatsReques" + + "t\022\016\n\006parent\030\001 \001(\t\"p\n\034ListFindingTypeStat" + + "sResponse\022P\n\022finding_type_stats\030\001 \003(\01324." + + "google.cloud.websecurityscanner.v1.Findi" + + "ngTypeStats2\351\023\n\022WebSecurityScanner\022\271\001\n\020C" + + "reateScanConfig\022;.google.cloud.websecuri" + + "tyscanner.v1.CreateScanConfigRequest\032..g" + + "oogle.cloud.websecurityscanner.v1.ScanCo" + + "nfig\"8\202\323\344\223\0022\"#/v1/{parent=projects/*}/sc" + + "anConfigs:\013scan_config\022\224\001\n\020DeleteScanCon" + + "fig\022;.google.cloud.websecurityscanner.v1" + + ".DeleteScanConfigRequest\032\026.google.protob" + + "uf.Empty\"+\202\323\344\223\002%*#/v1/{name=projects/*/s" + + "canConfigs/*}\022\246\001\n\rGetScanConfig\0228.google" + + ".cloud.websecurityscanner.v1.GetScanConf" + + "igRequest\032..google.cloud.websecurityscan" + + "ner.v1.ScanConfig\"+\202\323\344\223\002%\022#/v1/{name=pro" + + "jects/*/scanConfigs/*}\022\267\001\n\017ListScanConfi" + + "gs\022:.google.cloud.websecurityscanner.v1." + + "ListScanConfigsRequest\032;.google.cloud.we" + + "bsecurityscanner.v1.ListScanConfigsRespo" + + "nse\"+\202\323\344\223\002%\022#/v1/{parent=projects/*}/sca" + + "nConfigs\022\305\001\n\020UpdateScanConfig\022;.google.c" + + "loud.websecurityscanner.v1.UpdateScanCon" + + "figRequest\032..google.cloud.websecuritysca" + + "nner.v1.ScanConfig\"D\202\323\344\223\002>2//v1/{scan_co" + + "nfig.name=projects/*/scanConfigs/*}:\013sca" + + "n_config\022\252\001\n\014StartScanRun\0227.google.cloud" + + ".websecurityscanner.v1.StartScanRunReque" + + "st\032+.google.cloud.websecurityscanner.v1." + + "ScanRun\"4\202\323\344\223\002.\")/v1/{name=projects/*/sc" + + "anConfigs/*}:start:\001*\022\250\001\n\nGetScanRun\0225.g" + + "oogle.cloud.websecurityscanner.v1.GetSca" + + "nRunRequest\032+.google.cloud.websecuritysc" + + "anner.v1.ScanRun\"6\202\323\344\223\0020\022./v1/{name=proj" + + "ects/*/scanConfigs/*/scanRuns/*}\022\271\001\n\014Lis" + + "tScanRuns\0227.google.cloud.websecurityscan" + + "ner.v1.ListScanRunsRequest\0328.google.clou" + + "d.websecurityscanner.v1.ListScanRunsResp" + + "onse\"6\202\323\344\223\0020\022./v1/{parent=projects/*/sca" + + "nConfigs/*}/scanRuns\022\262\001\n\013StopScanRun\0226.g" + + "oogle.cloud.websecurityscanner.v1.StopSc" + + "anRunRequest\032+.google.cloud.websecuritys" + + "canner.v1.ScanRun\">\202\323\344\223\0028\"3/v1/{name=pro" + + "jects/*/scanConfigs/*/scanRuns/*}:stop:\001" + + "*\022\320\001\n\017ListCrawledUrls\022:.google.cloud.web" + + "securityscanner.v1.ListCrawledUrlsReques" + + "t\032;.google.cloud.websecurityscanner.v1.L" + + "istCrawledUrlsResponse\"D\202\323\344\223\002>\022 * Information reported for an XSS. *
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xss} */ -public final class Xss extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Xss extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Xss) XssOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Xss.newBuilder() to construct. private Xss(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Xss() { stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; errorMessage_ = ""; @@ -46,15 +28,16 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xss(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Xss( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,44 +57,40 @@ private Xss( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stackTraces_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackTraces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + stackTraces_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + errorMessage_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - attackVector_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + attackVector_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - storedXssSeedingUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + storedXssSeedingUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -119,7 +98,8 @@ private Xss( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -128,35 +108,29 @@ private Xss( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xss.class, - com.google.cloud.websecurityscanner.v1.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1.Xss.class, com.google.cloud.websecurityscanner.v1.Xss.Builder.class); } /** - * - * *
    * Types of XSS attack vector.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.Xss.AttackVector} */ - public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { + public enum AttackVector + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown attack vector.
      * 
@@ -165,8 +139,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ ATTACK_VECTOR_UNSPECIFIED(0), /** - * - * *
      * The attack comes from fuzzing the browser's localStorage.
      * 
@@ -175,8 +147,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ LOCAL_STORAGE(1), /** - * - * *
      * The attack comes from fuzzing the browser's sessionStorage.
      * 
@@ -185,8 +155,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ SESSION_STORAGE(2), /** - * - * *
      * The attack comes from fuzzing the window's name property.
      * 
@@ -195,8 +163,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ WINDOW_NAME(3), /** - * - * *
      * The attack comes from fuzzing the referrer property.
      * 
@@ -205,8 +171,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ REFERRER(4), /** - * - * *
      * The attack comes from fuzzing an input element.
      * 
@@ -215,8 +179,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ FORM_INPUT(5), /** - * - * *
      * The attack comes from fuzzing the browser's cookies.
      * 
@@ -225,8 +187,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ COOKIE(6), /** - * - * *
      * The attack comes from hijacking the post messaging mechanism.
      * 
@@ -235,8 +195,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ POST_MESSAGE(7), /** - * - * *
      * The attack comes from fuzzing parameters in the url.
      * 
@@ -245,8 +203,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ GET_PARAMETERS(8), /** - * - * *
      * The attack comes from fuzzing the fragment in the url.
      * 
@@ -255,8 +211,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ URL_FRAGMENT(9), /** - * - * *
      * The attack comes from fuzzing the HTML comments.
      * 
@@ -265,8 +219,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ HTML_COMMENT(10), /** - * - * *
      * The attack comes from fuzzing the POST parameters.
      * 
@@ -275,8 +227,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ POST_PARAMETERS(11), /** - * - * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -285,8 +235,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ PROTOCOL(12), /** - * - * *
      * The attack comes from the server side and is stored.
      * 
@@ -295,8 +243,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ STORED_XSS(13), /** - * - * *
      * The attack is a Same-Origin Method Execution attack via a GET parameter.
      * 
@@ -305,8 +251,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ SAME_ORIGIN(14), /** - * - * *
      * The attack payload is received from a third-party host via a URL that is
      * user-controllable
@@ -319,8 +263,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unknown attack vector.
      * 
@@ -329,8 +271,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The attack comes from fuzzing the browser's localStorage.
      * 
@@ -339,8 +279,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOCAL_STORAGE_VALUE = 1; /** - * - * *
      * The attack comes from fuzzing the browser's sessionStorage.
      * 
@@ -349,8 +287,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SESSION_STORAGE_VALUE = 2; /** - * - * *
      * The attack comes from fuzzing the window's name property.
      * 
@@ -359,8 +295,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WINDOW_NAME_VALUE = 3; /** - * - * *
      * The attack comes from fuzzing the referrer property.
      * 
@@ -369,8 +303,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REFERRER_VALUE = 4; /** - * - * *
      * The attack comes from fuzzing an input element.
      * 
@@ -379,8 +311,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORM_INPUT_VALUE = 5; /** - * - * *
      * The attack comes from fuzzing the browser's cookies.
      * 
@@ -389,8 +319,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COOKIE_VALUE = 6; /** - * - * *
      * The attack comes from hijacking the post messaging mechanism.
      * 
@@ -399,8 +327,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POST_MESSAGE_VALUE = 7; /** - * - * *
      * The attack comes from fuzzing parameters in the url.
      * 
@@ -409,8 +335,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GET_PARAMETERS_VALUE = 8; /** - * - * *
      * The attack comes from fuzzing the fragment in the url.
      * 
@@ -419,8 +343,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int URL_FRAGMENT_VALUE = 9; /** - * - * *
      * The attack comes from fuzzing the HTML comments.
      * 
@@ -429,8 +351,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HTML_COMMENT_VALUE = 10; /** - * - * *
      * The attack comes from fuzzing the POST parameters.
      * 
@@ -439,8 +359,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POST_PARAMETERS_VALUE = 11; /** - * - * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -449,8 +367,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROTOCOL_VALUE = 12; /** - * - * *
      * The attack comes from the server side and is stored.
      * 
@@ -459,8 +375,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STORED_XSS_VALUE = 13; /** - * - * *
      * The attack is a Same-Origin Method Execution attack via a GET parameter.
      * 
@@ -469,8 +383,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SAME_ORIGIN_VALUE = 14; /** - * - * *
      * The attack payload is received from a third-party host via a URL that is
      * user-controllable
@@ -480,6 +392,7 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int USER_CONTROLLABLE_URL_VALUE = 15;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -504,75 +417,62 @@ public static AttackVector valueOf(int value) {
      */
     public static AttackVector forNumber(int value) {
       switch (value) {
-        case 0:
-          return ATTACK_VECTOR_UNSPECIFIED;
-        case 1:
-          return LOCAL_STORAGE;
-        case 2:
-          return SESSION_STORAGE;
-        case 3:
-          return WINDOW_NAME;
-        case 4:
-          return REFERRER;
-        case 5:
-          return FORM_INPUT;
-        case 6:
-          return COOKIE;
-        case 7:
-          return POST_MESSAGE;
-        case 8:
-          return GET_PARAMETERS;
-        case 9:
-          return URL_FRAGMENT;
-        case 10:
-          return HTML_COMMENT;
-        case 11:
-          return POST_PARAMETERS;
-        case 12:
-          return PROTOCOL;
-        case 13:
-          return STORED_XSS;
-        case 14:
-          return SAME_ORIGIN;
-        case 15:
-          return USER_CONTROLLABLE_URL;
-        default:
-          return null;
+        case 0: return ATTACK_VECTOR_UNSPECIFIED;
+        case 1: return LOCAL_STORAGE;
+        case 2: return SESSION_STORAGE;
+        case 3: return WINDOW_NAME;
+        case 4: return REFERRER;
+        case 5: return FORM_INPUT;
+        case 6: return COOKIE;
+        case 7: return POST_MESSAGE;
+        case 8: return GET_PARAMETERS;
+        case 9: return URL_FRAGMENT;
+        case 10: return HTML_COMMENT;
+        case 11: return POST_PARAMETERS;
+        case 12: return PROTOCOL;
+        case 13: return STORED_XSS;
+        case 14: return SAME_ORIGIN;
+        case 15: return USER_CONTROLLABLE_URL;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AttackVector> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AttackVector findValueByNumber(int number) {
+              return AttackVector.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public AttackVector findValueByNumber(int number) {
-            return AttackVector.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.websecurityscanner.v1.Xss.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AttackVector[] VALUES = values();
 
-    public static AttackVector valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AttackVector valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -592,42 +492,34 @@ private AttackVector(int value) {
   public static final int STACK_TRACES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList stackTraces_;
   /**
-   *
-   *
    * 
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_; } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -635,32 +527,27 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -669,29 +556,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -702,52 +589,38 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { public static final int ATTACK_VECTOR_FIELD_NUMBER = 3; private int attackVector_; /** - * - * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override - public int getAttackVectorValue() { + @java.lang.Override public int getAttackVectorValue() { return attackVector_; } /** - * - * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The attackVector. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = - com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); + return result == null ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED : result; } public static final int STORED_XSS_SEEDING_URL_FIELD_NUMBER = 4; private volatile java.lang.Object storedXssSeedingUrl_; /** - * - * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; - * * @return The storedXssSeedingUrl. */ @java.lang.Override @@ -756,29 +629,29 @@ public java.lang.String getStoredXssSeedingUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storedXssSeedingUrl_ = s; return s; } } /** - * - * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; - * * @return The bytes for storedXssSeedingUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { + public com.google.protobuf.ByteString + getStoredXssSeedingUrlBytes() { java.lang.Object ref = storedXssSeedingUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storedXssSeedingUrl_ = b; return b; } else { @@ -787,7 +660,6 @@ public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -799,16 +671,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < stackTraces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTraces_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); } - if (attackVector_ - != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED - .getNumber()) { + if (attackVector_ != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { output.writeEnum(3, attackVector_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storedXssSeedingUrl_)) { @@ -834,10 +705,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } - if (attackVector_ - != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, attackVector_); + if (attackVector_ != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, attackVector_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storedXssSeedingUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storedXssSeedingUrl_); @@ -850,18 +720,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Xss)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Xss other = - (com.google.cloud.websecurityscanner.v1.Xss) obj; + com.google.cloud.websecurityscanner.v1.Xss other = (com.google.cloud.websecurityscanner.v1.Xss) obj; - if (!getStackTracesList().equals(other.getStackTracesList())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getStackTracesList() + .equals(other.getStackTracesList())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (attackVector_ != other.attackVector_) return false; - if (!getStoredXssSeedingUrl().equals(other.getStoredXssSeedingUrl())) return false; + if (!getStoredXssSeedingUrl() + .equals(other.getStoredXssSeedingUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -888,127 +760,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.Xss parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.Xss parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Xss parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Xss prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an XSS.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xss} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Xss) com.google.cloud.websecurityscanner.v1.XssOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xss.class, - com.google.cloud.websecurityscanner.v1.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1.Xss.class, com.google.cloud.websecurityscanner.v1.Xss.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.Xss.newBuilder() @@ -1016,15 +879,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1040,9 +904,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; } @java.lang.Override @@ -1061,8 +925,7 @@ public com.google.cloud.websecurityscanner.v1.Xss build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss buildPartial() { - com.google.cloud.websecurityscanner.v1.Xss result = - new com.google.cloud.websecurityscanner.v1.Xss(this); + com.google.cloud.websecurityscanner.v1.Xss result = new com.google.cloud.websecurityscanner.v1.Xss(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -1080,39 +943,38 @@ public com.google.cloud.websecurityscanner.v1.Xss buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.Xss) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.Xss) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.Xss)other); } else { super.mergeFrom(other); return this; @@ -1170,55 +1032,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList stackTraces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStackTracesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_.getUnmodifiableView(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -1226,90 +1077,80 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index to set the value at. * @param value The stackTraces to set. * @return This builder for chaining. */ - public Builder setStackTraces(int index, java.lang.String value) { + public Builder setStackTraces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.set(index, value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTraces(java.lang.String value) { + public Builder addStackTraces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param values The stackTraces to add. * @return This builder for chaining. */ - public Builder addAllStackTraces(java.lang.Iterable values) { + public Builder addAllStackTraces( + java.lang.Iterable values) { ensureStackTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stackTraces_); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return This builder for chaining. */ public Builder clearStackTraces() { @@ -1319,22 +1160,20 @@ public Builder clearStackTraces() { return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The bytes of the stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { + public Builder addStackTracesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); @@ -1343,20 +1182,18 @@ public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -1365,21 +1202,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -1387,61 +1223,54 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; @@ -1449,67 +1278,51 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { private int attackVector_ = 0; /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override - public int getAttackVectorValue() { + @java.lang.Override public int getAttackVectorValue() { return attackVector_; } /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @param value The enum numeric value on the wire for attackVector to set. * @return This builder for chaining. */ public Builder setAttackVectorValue(int value) { - + attackVector_ = value; onChanged(); return this; } /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The attackVector. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = - com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); + return result == null ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED : result; } /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @param value The attackVector to set. * @return This builder for chaining. */ @@ -1517,24 +1330,21 @@ public Builder setAttackVector(com.google.cloud.websecurityscanner.v1.Xss.Attack if (value == null) { throw new NullPointerException(); } - + attackVector_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return This builder for chaining. */ public Builder clearAttackVector() { - + attackVector_ = 0; onChanged(); return this; @@ -1542,20 +1352,18 @@ public Builder clearAttackVector() { private java.lang.Object storedXssSeedingUrl_ = ""; /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @return The storedXssSeedingUrl. */ public java.lang.String getStoredXssSeedingUrl() { java.lang.Object ref = storedXssSeedingUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storedXssSeedingUrl_ = s; return s; @@ -1564,21 +1372,20 @@ public java.lang.String getStoredXssSeedingUrl() { } } /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @return The bytes for storedXssSeedingUrl. */ - public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { + public com.google.protobuf.ByteString + getStoredXssSeedingUrlBytes() { java.lang.Object ref = storedXssSeedingUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storedXssSeedingUrl_ = b; return b; } else { @@ -1586,68 +1393,61 @@ public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { } } /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @param value The storedXssSeedingUrl to set. * @return This builder for chaining. */ - public Builder setStoredXssSeedingUrl(java.lang.String value) { + public Builder setStoredXssSeedingUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storedXssSeedingUrl_ = value; onChanged(); return this; } /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @return This builder for chaining. */ public Builder clearStoredXssSeedingUrl() { - + storedXssSeedingUrl_ = getDefaultInstance().getStoredXssSeedingUrl(); onChanged(); return this; } /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @param value The bytes for storedXssSeedingUrl to set. * @return This builder for chaining. */ - public Builder setStoredXssSeedingUrlBytes(com.google.protobuf.ByteString value) { + public Builder setStoredXssSeedingUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storedXssSeedingUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1657,12 +1457,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Xss) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Xss) private static final com.google.cloud.websecurityscanner.v1.Xss DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Xss(); } @@ -1671,16 +1471,16 @@ public static com.google.cloud.websecurityscanner.v1.Xss getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xss parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xss parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xss(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1695,4 +1495,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java index 28d99d6c..881b7416 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java @@ -1,151 +1,109 @@ -/* - * 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/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface XssOrBuilder - extends +public interface XssOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Xss) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - java.util.List getStackTracesList(); + java.util.List + getStackTracesList(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ int getStackTracesCount(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ java.lang.String getStackTraces(int index); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - com.google.protobuf.ByteString getStackTracesBytes(int index); + com.google.protobuf.ByteString + getStackTracesBytes(int index); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); /** - * - * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The enum numeric value on the wire for attackVector. */ int getAttackVectorValue(); /** - * - * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The attackVector. */ com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector(); /** - * - * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; - * * @return The storedXssSeedingUrl. */ java.lang.String getStoredXssSeedingUrl(); /** - * - * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; - * * @return The bytes for storedXssSeedingUrl. */ - com.google.protobuf.ByteString getStoredXssSeedingUrlBytes(); + com.google.protobuf.ByteString + getStoredXssSeedingUrlBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java new file mode 100644 index 00000000..fda2b078 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java @@ -0,0 +1,854 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1; + +/** + *
+ * Information reported for an XXE.
+ * 
+ * + * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} + */ +public final class Xxe extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Xxe) + XxeOrBuilder { +private static final long serialVersionUID = 0L; + // Use Xxe.newBuilder() to construct. + private Xxe(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Xxe() { + payloadValue_ = ""; + payloadLocation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Xxe(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Xxe( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + payloadValue_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + payloadLocation_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.websecurityscanner.v1.Xxe.class, com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + } + + /** + *
+   * Locations within a request where XML was substituted.
+   * 
+ * + * Protobuf enum {@code google.cloud.websecurityscanner.v1.Xxe.Location} + */ + public enum Location + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Unknown Location.
+     * 
+ * + * LOCATION_UNSPECIFIED = 0; + */ + LOCATION_UNSPECIFIED(0), + /** + *
+     * The XML payload replaced the complete request body.
+     * 
+ * + * COMPLETE_REQUEST_BODY = 1; + */ + COMPLETE_REQUEST_BODY(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unknown Location.
+     * 
+ * + * LOCATION_UNSPECIFIED = 0; + */ + public static final int LOCATION_UNSPECIFIED_VALUE = 0; + /** + *
+     * The XML payload replaced the complete request body.
+     * 
+ * + * COMPLETE_REQUEST_BODY = 1; + */ + public static final int COMPLETE_REQUEST_BODY_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Location valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Location forNumber(int value) { + switch (value) { + case 0: return LOCATION_UNSPECIFIED; + case 1: return COMPLETE_REQUEST_BODY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Location> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Location findValueByNumber(int number) { + return Location.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.Xxe.getDescriptor().getEnumTypes().get(0); + } + + private static final Location[] VALUES = values(); + + public static Location valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Location(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1.Xxe.Location) + } + + public static final int PAYLOAD_VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object payloadValue_; + /** + *
+   * The XML string that triggered the XXE vulnerability. Non-payload values
+   * might be redacted.
+   * 
+ * + * string payload_value = 1; + * @return The payloadValue. + */ + @java.lang.Override + public java.lang.String getPayloadValue() { + java.lang.Object ref = payloadValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payloadValue_ = s; + return s; + } + } + /** + *
+   * The XML string that triggered the XXE vulnerability. Non-payload values
+   * might be redacted.
+   * 
+ * + * string payload_value = 1; + * @return The bytes for payloadValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPayloadValueBytes() { + java.lang.Object ref = payloadValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + payloadValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAYLOAD_LOCATION_FIELD_NUMBER = 2; + private int payloadLocation_; + /** + *
+   * Location within the request where the payload was placed.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * @return The enum numeric value on the wire for payloadLocation. + */ + @java.lang.Override public int getPayloadLocationValue() { + return payloadLocation_; + } + /** + *
+   * Location within the request where the payload was placed.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * @return The payloadLocation. + */ + @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.Xxe.Location result = com.google.cloud.websecurityscanner.v1.Xxe.Location.valueOf(payloadLocation_); + return result == null ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payloadValue_); + } + if (payloadLocation_ != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, payloadLocation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, payloadValue_); + } + if (payloadLocation_ != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, payloadLocation_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Xxe)) { + return super.equals(obj); + } + com.google.cloud.websecurityscanner.v1.Xxe other = (com.google.cloud.websecurityscanner.v1.Xxe) obj; + + if (!getPayloadValue() + .equals(other.getPayloadValue())) return false; + if (payloadLocation_ != other.payloadLocation_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAYLOAD_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getPayloadValue().hashCode(); + hash = (37 * hash) + PAYLOAD_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + payloadLocation_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Xxe prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Information reported for an XXE.
+   * 
+ * + * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Xxe) + com.google.cloud.websecurityscanner.v1.XxeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.websecurityscanner.v1.Xxe.class, com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + } + + // Construct using com.google.cloud.websecurityscanner.v1.Xxe.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + payloadValue_ = ""; + + payloadLocation_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe build() { + com.google.cloud.websecurityscanner.v1.Xxe result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe buildPartial() { + com.google.cloud.websecurityscanner.v1.Xxe result = new com.google.cloud.websecurityscanner.v1.Xxe(this); + result.payloadValue_ = payloadValue_; + result.payloadLocation_ = payloadLocation_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.websecurityscanner.v1.Xxe) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.Xxe)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.Xxe other) { + if (other == com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance()) return this; + if (!other.getPayloadValue().isEmpty()) { + payloadValue_ = other.payloadValue_; + onChanged(); + } + if (other.payloadLocation_ != 0) { + setPayloadLocationValue(other.getPayloadLocationValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.websecurityscanner.v1.Xxe parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.websecurityscanner.v1.Xxe) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object payloadValue_ = ""; + /** + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * @return The payloadValue. + */ + public java.lang.String getPayloadValue() { + java.lang.Object ref = payloadValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payloadValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * @return The bytes for payloadValue. + */ + public com.google.protobuf.ByteString + getPayloadValueBytes() { + java.lang.Object ref = payloadValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + payloadValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * @param value The payloadValue to set. + * @return This builder for chaining. + */ + public Builder setPayloadValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + payloadValue_ = value; + onChanged(); + return this; + } + /** + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * @return This builder for chaining. + */ + public Builder clearPayloadValue() { + + payloadValue_ = getDefaultInstance().getPayloadValue(); + onChanged(); + return this; + } + /** + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * @param value The bytes for payloadValue to set. + * @return This builder for chaining. + */ + public Builder setPayloadValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + payloadValue_ = value; + onChanged(); + return this; + } + + private int payloadLocation_ = 0; + /** + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * @return The enum numeric value on the wire for payloadLocation. + */ + @java.lang.Override public int getPayloadLocationValue() { + return payloadLocation_; + } + /** + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * @param value The enum numeric value on the wire for payloadLocation to set. + * @return This builder for chaining. + */ + public Builder setPayloadLocationValue(int value) { + + payloadLocation_ = value; + onChanged(); + return this; + } + /** + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * @return The payloadLocation. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.Xxe.Location result = com.google.cloud.websecurityscanner.v1.Xxe.Location.valueOf(payloadLocation_); + return result == null ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED : result; + } + /** + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * @param value The payloadLocation to set. + * @return This builder for chaining. + */ + public Builder setPayloadLocation(com.google.cloud.websecurityscanner.v1.Xxe.Location value) { + if (value == null) { + throw new NullPointerException(); + } + + payloadLocation_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * @return This builder for chaining. + */ + public Builder clearPayloadLocation() { + + payloadLocation_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Xxe) + } + + // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Xxe) + private static final com.google.cloud.websecurityscanner.v1.Xxe DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Xxe(); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xxe parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xxe(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java new file mode 100644 index 00000000..478f22f8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1; + +public interface XxeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Xxe) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The XML string that triggered the XXE vulnerability. Non-payload values
+   * might be redacted.
+   * 
+ * + * string payload_value = 1; + * @return The payloadValue. + */ + java.lang.String getPayloadValue(); + /** + *
+   * The XML string that triggered the XXE vulnerability. Non-payload values
+   * might be redacted.
+   * 
+ * + * string payload_value = 1; + * @return The bytes for payloadValue. + */ + com.google.protobuf.ByteString + getPayloadValueBytes(); + + /** + *
+   * Location within the request where the payload was placed.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * @return The enum numeric value on the wire for payloadLocation. + */ + int getPayloadLocationValue(); + /** + *
+   * Location within the request where the payload was placed.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * @return The payloadLocation. + */ + com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation(); +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto similarity index 98% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto index 37724b80..65fc000f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto similarity index 96% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto index 32bd5d83..71fea950 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -116,4 +116,7 @@ message Finding { // Output only. An addon containing information reported for an XSS, if any. Xss xss = 14; + + // Output only. An addon containing information reported for an XXE, if any. + Xxe xxe = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto similarity index 88% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto index 4fb7ec1d..1bcec8c7 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -145,3 +145,22 @@ message Xss { // The reproduction url for the seeding POST request of a Stored XSS. string stored_xss_seeding_url = 4; } + +// Information reported for an XXE. +message Xxe { + // Locations within a request where XML was substituted. + enum Location { + // Unknown Location. + LOCATION_UNSPECIFIED = 0; + + // The XML payload replaced the complete request body. + COMPLETE_REQUEST_BODY = 1; + } + + // The XML string that triggered the XXE vulnerability. Non-payload values + // might be redacted. + string payload_value = 1; + + // Location within the request where the payload was placed. + Location payload_location = 2; +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto similarity index 97% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto index 7eca01ed..7999f76d 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto similarity index 96% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto index 901d01e4..85641af2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ message ScanConfig { message Authentication { // Describes authentication configuration that uses a Google account. message GoogleAccount { + option deprecated = true; + // Required. The user name of the Google account. string username = 1; @@ -76,7 +78,7 @@ message ScanConfig { // Authentication configuration oneof authentication { // Authentication using a Google account. - GoogleAccount google_account = 1; + GoogleAccount google_account = 1 [deprecated = true]; // Authentication using a custom account. CustomAccount custom_account = 2; @@ -185,4 +187,7 @@ message ScanConfig { // Whether the scan configuration has enabled static IP address scan feature. // If enabled, the scanner will access applications from static IP addresses. bool static_ip_scan = 14; + + // Whether to keep scanning even if most requests return HTTP error codes. + bool ignore_http_status_errors = 15; } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto similarity index 99% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto index 5d544578..5924f915 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto similarity index 99% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto index 465c6cb6..71df3a04 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto similarity index 98% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto index 5234eee2..0c41c143 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; message ScanRunErrorTrace { // Output only. // Defines an error reason code. - // Next id: 7 + // Next id: 8 enum Code { // Default value is never used. CODE_UNSPECIFIED = 0; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto similarity index 94% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto index 43a5017d..dfc61697 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,6 +51,9 @@ message ScanRunWarningTrace { // Indicates that a scan is blocked by IAP. BLOCKED_BY_IAP = 4; + + // Indicates that no seeds is found for a scan + NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5; } // Output only. Indicates the warning code. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto similarity index 99% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto index 5f1bfcd4..efcc9bf2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/cloud/websecurityscanner/v1/crawled_url.proto"; import "google/cloud/websecurityscanner/v1/finding.proto"; import "google/cloud/websecurityscanner/v1/finding_type_stats.proto"; @@ -24,7 +25,6 @@ import "google/cloud/websecurityscanner/v1/scan_config.proto"; import "google/cloud/websecurityscanner/v1/scan_run.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java index 0165340a..14794010 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerStubSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java index 6b45bc3b..2b22896a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java index 37635708..bdbe327f 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java index 4b0f7a86..aeac6b1b 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build(); WebSecurityScannerClient webSecurityScannerClient = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java index d5be65fc..d768930e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java index 74ffd593..25407243 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java index 365e7e26..3980d29b 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java index f5420912..a9686e26 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java index aca1c9d1..4573ad0c 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build(); ApiFuture future = webSecurityScannerClient.getFindingCallable().futureCall(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java index a022e022..c9d55db2 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build(); Finding response = webSecurityScannerClient.getFinding(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java index 40a2e73d..790005c9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java index 7d05af13..6df07bc9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java index 35f5963c..d318bf89 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build(); ApiFuture future = webSecurityScannerClient.getScanRunCallable().futureCall(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java index 4182b871..77d84485 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build(); ScanRun response = webSecurityScannerClient.getScanRun(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java index 8128b5be..dc4f0f83 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 84% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java index 85d06350..a6118a64 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrlsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java index ad9bf66c..1d85a034 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java index 0549b8d2..11256a7a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java similarity index 84% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java index 308c9c27..de812a34 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java index 8d3b4586..ee2b52d9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java index bf9db34a..cfcf7c07 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java index 17da1008..851a879b 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java index 75109e33..32d26aaa 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 84% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java index 94ee8483..04080282 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java index 8a97137b..9b9f9081 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java index ea35bc6c..3a0b6373 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java similarity index 84% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java index 525941ed..4fe370d0 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRunsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java index b63bddb3..65baa2b6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java index b41ee017..7711f2a1 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build(); ApiFuture future = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java index 68025cf8..1e5b3312 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build(); ScanRun response = webSecurityScannerClient.startScanRun(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java index 94e0f8bb..f9ddbd00 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build(); ApiFuture future = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java index 7af2e73a..f69fd4ec 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build(); ScanRun response = webSecurityScannerClient.stopScanRun(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java index cea409c3..c1d5a6bd 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java index a29bbab6..4e6afc55 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java index 10363a8c..e20eead0 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java similarity index 74% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java index 6b4db15e..c64f3441 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java +++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java @@ -45,8 +45,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -84,8 +87,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WebSecurityScannerClient webSecurityScannerClient =
@@ -109,8 +118,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -180,8 +192,11 @@ public WebSecurityScannerStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -210,8 +225,11 @@ public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConf
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -237,8 +255,11 @@ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -263,8 +284,11 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -289,8 +313,11 @@ public final UnaryCallable createScanConfig
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   webSecurityScannerClient.deleteScanConfig(name);
@@ -314,8 +341,11 @@ public final void deleteScanConfig(ScanConfigName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   webSecurityScannerClient.deleteScanConfig(name);
@@ -338,8 +368,11 @@ public final void deleteScanConfig(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder()
@@ -363,8 +396,11 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder()
@@ -388,8 +424,11 @@ public final UnaryCallable deleteScanConfigCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
@@ -413,8 +452,11 @@ public final ScanConfig getScanConfig(ScanConfigName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
@@ -437,8 +479,11 @@ public final ScanConfig getScanConfig(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder()
@@ -462,8 +507,11 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder()
@@ -487,8 +535,11 @@ public final UnaryCallable getScanConfigCallab
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
@@ -516,8 +567,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
@@ -542,8 +596,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -571,8 +628,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -601,8 +661,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -638,8 +701,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -671,8 +737,11 @@ public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask update
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -697,8 +766,11 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -723,8 +795,11 @@ public final UnaryCallable updateScanConfig
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ScanRun response = webSecurityScannerClient.startScanRun(name);
@@ -748,8 +823,11 @@ public final ScanRun startScanRun(ScanConfigName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   ScanRun response = webSecurityScannerClient.startScanRun(name);
@@ -772,8 +850,11 @@ public final ScanRun startScanRun(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request =
    *       StartScanRunRequest.newBuilder()
@@ -797,8 +878,11 @@ public final ScanRun startScanRun(StartScanRunRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request =
    *       StartScanRunRequest.newBuilder()
@@ -822,8 +906,11 @@ public final UnaryCallable startScanRunCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ScanRun response = webSecurityScannerClient.getScanRun(name);
@@ -847,8 +934,11 @@ public final ScanRun getScanRun(ScanRunName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ScanRun response = webSecurityScannerClient.getScanRun(name);
@@ -871,8 +961,11 @@ public final ScanRun getScanRun(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request =
    *       GetScanRunRequest.newBuilder()
@@ -896,8 +989,11 @@ public final ScanRun getScanRun(GetScanRunRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request =
    *       GetScanRunRequest.newBuilder()
@@ -920,8 +1016,11 @@ public final UnaryCallable getScanRunCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
@@ -949,8 +1048,11 @@ public final ListScanRunsPagedResponse listScanRuns(ScanConfigName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
@@ -975,8 +1077,11 @@ public final ListScanRunsPagedResponse listScanRuns(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1004,8 +1109,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1034,8 +1142,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1070,8 +1181,11 @@ public final UnaryCallable listScanRu
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
@@ -1095,8 +1209,11 @@ public final ScanRun stopScanRun(ScanRunName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
@@ -1119,8 +1236,11 @@ public final ScanRun stopScanRun(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request =
    *       StopScanRunRequest.newBuilder()
@@ -1144,8 +1264,11 @@ public final ScanRun stopScanRun(StopScanRunRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request =
    *       StopScanRunRequest.newBuilder()
@@ -1169,8 +1292,11 @@ public final UnaryCallable stopScanRunCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
@@ -1198,8 +1324,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
@@ -1224,8 +1353,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1253,8 +1385,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1283,8 +1418,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1320,8 +1458,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
    *   Finding response = webSecurityScannerClient.getFinding(name);
@@ -1346,8 +1487,11 @@ public final Finding getFinding(FindingName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name =
    *       FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString();
@@ -1372,8 +1516,11 @@ public final Finding getFinding(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request =
    *       GetFindingRequest.newBuilder()
@@ -1399,8 +1546,11 @@ public final Finding getFinding(GetFindingRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request =
    *       GetFindingRequest.newBuilder()
@@ -1425,8 +1575,11 @@ public final UnaryCallable getFindingCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   String filter = "filter-1274492040";
@@ -1459,8 +1612,11 @@ public final ListFindingsPagedResponse listFindings(ScanRunName parent, String f
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   String filter = "filter-1274492040";
@@ -1490,8 +1646,11 @@ public final ListFindingsPagedResponse listFindings(String parent, String filter
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1520,8 +1679,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1551,8 +1713,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1588,8 +1753,11 @@ public final UnaryCallable listFindin
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
@@ -1615,8 +1783,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName paren
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
@@ -1640,8 +1811,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder()
@@ -1667,8 +1841,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
similarity index 97%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
index 430ab763..623cce34 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
+++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
@@ -31,6 +31,7 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.cloud.websecurityscanner.v1alpha.stub.WebSecurityScannerStubSettings;
@@ -58,8 +59,11 @@
  * 

For example, to set the total timeout of createScanConfig to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
similarity index 78%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
index 381caba4..1a03cc9f 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
+++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for WebSecurityScannerClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java
similarity index 99%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java
index 0abb7f0f..0ca6e3f7 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java
+++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java
@@ -55,6 +55,7 @@
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
 import java.io.IOException;
+import java.util.Map;
 import java.util.concurrent.TimeUnit;
 import javax.annotation.Generated;
 
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
similarity index 99%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
index 12f0943e..930ee98d 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
+++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
@@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -389,7 +389,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
similarity index 98%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
index 518a4b1c..c6f39f47 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
+++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
@@ -97,8 +97,11 @@
  * 

For example, to set the total timeout of createScanConfig to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerStubSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java
rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java
diff --git a/owl-bot-staging/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/owl-bot-staging/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java
new file mode 100644
index 00000000..f6714aa1
--- /dev/null
+++ b/owl-bot-staging/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java
@@ -0,0 +1,1349 @@
+package com.google.cloud.websecurityscanner.v1alpha;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ * 
+ * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+ * applications hosted on Google Cloud Platform. It crawls your application, and
+ * attempts to exercise as many user inputs and event handlers as possible.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { + io.grpc.MethodDescriptor getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanConfigMethod() { + io.grpc.MethodDescriptor getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanConfigsMethod() { + io.grpc.MethodDescriptor getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartScanRunMethod() { + io.grpc.MethodDescriptor getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) + .build(); + } + } + } + return getStartScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanRun", + requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanRunMethod() { + io.grpc.MethodDescriptor getGetScanRunMethod; + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + WebSecurityScannerGrpc.getGetScanRunMethod = getGetScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) + .build(); + } + } + } + return getGetScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanRunsMethod() { + io.grpc.MethodDescriptor getListScanRunsMethod; + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + WebSecurityScannerGrpc.getListScanRunsMethod = getListScanRunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) + .build(); + } + } + } + return getListScanRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopScanRun", + requestType = com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopScanRunMethod() { + io.grpc.MethodDescriptor getStopScanRunMethod; + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + WebSecurityScannerGrpc.getStopScanRunMethod = getStopScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) + .build(); + } + } + } + return getStopScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCrawledUrlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCrawledUrlsMethod() { + io.grpc.MethodDescriptor getListCrawledUrlsMethod; + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + WebSecurityScannerGrpc.getListCrawledUrlsMethod = getListCrawledUrlsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) + .build(); + } + } + } + return getListCrawledUrlsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFindingMethod() { + io.grpc.MethodDescriptor getGetFindingMethod; + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + WebSecurityScannerGrpc.getGetFindingMethod = getGetFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingsMethod() { + io.grpc.MethodDescriptor getListFindingsMethod; + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + WebSecurityScannerGrpc.getListFindingsMethod = getListFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingTypeStatsMethod() { + io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + WebSecurityScannerGrpc.getListFindingTypeStatsMethod = getListFindingTypeStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) + .build(); + } + } + } + return getListFindingTypeStatsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + }; + return WebSecurityScannerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WebSecurityScannerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + }; + return WebSecurityScannerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WebSecurityScannerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + }; + return WebSecurityScannerFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static abstract class WebSecurityScannerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanConfigMethod(), responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanConfigsMethod(), responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanRunsMethod(), responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopScanRunMethod(), responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( + this, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SCAN_CONFIG))) + .addMethod( + getGetScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( + this, METHODID_GET_SCAN_CONFIG))) + .addMethod( + getListScanConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>( + this, METHODID_LIST_SCAN_CONFIGS))) + .addMethod( + getUpdateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( + this, METHODID_UPDATE_SCAN_CONFIG))) + .addMethod( + getStartScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun>( + this, METHODID_START_SCAN_RUN))) + .addMethod( + getGetScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun>( + this, METHODID_GET_SCAN_RUN))) + .addMethod( + getListScanRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>( + this, METHODID_LIST_SCAN_RUNS))) + .addMethod( + getStopScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun>( + this, METHODID_STOP_SCAN_RUN))) + .addMethod( + getListCrawledUrlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>( + this, METHODID_LIST_CRAWLED_URLS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, + com.google.cloud.websecurityscanner.v1alpha.Finding>( + this, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( + this, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerStub extends io.grpc.stub.AbstractAsyncStub { + private WebSecurityScannerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private WebSecurityScannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig createScanConfig(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.protobuf.Empty deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse listScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig updateScanConfig(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanRun startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanRunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanRun stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.Finding getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerFutureStub extends io.grpc.stub.AbstractFutureStub { + private WebSecurityScannerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createScanConfig( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteScanConfig( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanConfig( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanConfigs( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateScanConfig( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startScanRun( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanRun( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanRuns( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopScanRun( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCrawledUrls( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFinding( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindings( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindingTypeStats( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCAN_CONFIG = 0; + private static final int METHODID_DELETE_SCAN_CONFIG = 1; + private static final int METHODID_GET_SCAN_CONFIG = 2; + private static final int METHODID_LIST_SCAN_CONFIGS = 3; + private static final int METHODID_UPDATE_SCAN_CONFIG = 4; + private static final int METHODID_START_SCAN_RUN = 5; + private static final int METHODID_GET_SCAN_RUN = 6; + private static final int METHODID_LIST_SCAN_RUNS = 7; + private static final int METHODID_STOP_SCAN_RUN = 8; + private static final int METHODID_LIST_CRAWLED_URLS = 9; + private static final int METHODID_GET_FINDING = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WebSecurityScannerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCAN_CONFIG: + serviceImpl.createScanConfig((com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCAN_CONFIG: + serviceImpl.deleteScanConfig((com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_CONFIG: + serviceImpl.getScanConfig((com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_CONFIGS: + serviceImpl.listScanConfigs((com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCAN_CONFIG: + serviceImpl.updateScanConfig((com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_SCAN_RUN: + serviceImpl.startScanRun((com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_RUN: + serviceImpl.getScanRun((com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_RUNS: + serviceImpl.listScanRuns((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_SCAN_RUN: + serviceImpl.stopScanRun((com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CRAWLED_URLS: + serviceImpl.listCrawledUrls((com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding((com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings((com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDING_TYPE_STATS: + serviceImpl.listFindingTypeStats((com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WebSecurityScannerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WebSecurityScanner"); + } + } + + private static final class WebSecurityScannerFileDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier { + WebSecurityScannerFileDescriptorSupplier() {} + } + + private static final class WebSecurityScannerMethodDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WebSecurityScannerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WebSecurityScannerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) + .addMethod(getCreateScanConfigMethod()) + .addMethod(getDeleteScanConfigMethod()) + .addMethod(getGetScanConfigMethod()) + .addMethod(getListScanConfigsMethod()) + .addMethod(getUpdateScanConfigMethod()) + .addMethod(getStartScanRunMethod()) + .addMethod(getGetScanRunMethod()) + .addMethod(getListScanRunsMethod()) + .addMethod(getStopScanRunMethod()) + .addMethod(getListCrawledUrlsMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListFindingTypeStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java index 2d700ee5..8d2f05ff 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/crawled_url.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
  * Security Scanner Service crawls the web applications, following all links
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CrawledUrl}
  */
-public final class CrawledUrl extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CrawledUrl extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.CrawledUrl)
     CrawledUrlOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CrawledUrl.newBuilder() to construct.
   private CrawledUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CrawledUrl() {
     httpMethod_ = "";
     url_ = "";
@@ -47,15 +29,16 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CrawledUrl(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,34 +57,31 @@ private CrawledUrl(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              url_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            url_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            body_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,40 +89,35 @@ private CrawledUrl(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class,
-            com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
   }
 
   public static final int HTTP_METHOD_FIELD_NUMBER = 1;
   private volatile java.lang.Object httpMethod_;
   /**
-   *
-   *
    * 
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ @java.lang.Override @@ -151,30 +126,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -185,14 +160,11 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ @java.lang.Override @@ -201,29 +173,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -234,14 +206,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int BODY_FIELD_NUMBER = 3; private volatile java.lang.Object body_; /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ @java.lang.Override @@ -250,29 +219,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -281,7 +250,6 @@ public com.google.protobuf.ByteString getBodyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpMethod_); } @@ -329,17 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.CrawledUrl)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl other = - (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) obj; + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl other = (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) obj; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getUrl().equals(other.getUrl())) return false; - if (!getBody().equals(other.getBody())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,104 +334,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
    * Security Scanner Service crawls the web applications, following all links
@@ -469,23 +432,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CrawledUrl}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.CrawledUrl)
       com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class,
-              com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.newBuilder()
@@ -493,15 +454,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -515,9 +477,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
@@ -536,8 +498,7 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.CrawledUrl result =
-          new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(this);
+      com.google.cloud.websecurityscanner.v1alpha.CrawledUrl result = new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(this);
       result.httpMethod_ = httpMethod_;
       result.url_ = url_;
       result.body_ = body_;
@@ -549,39 +510,38 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.CrawledUrl)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,8 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()) return this;
       if (!other.getHttpMethod().isEmpty()) {
         httpMethod_ = other.httpMethod_;
         onChanged();
@@ -622,8 +581,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -635,21 +593,19 @@ public Builder mergeFrom(
 
     private java.lang.Object httpMethod_ = "";
     /**
-     *
-     *
      * 
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -658,22 +614,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -681,64 +636,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -746,20 +694,18 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object url_ = ""; /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -768,21 +714,20 @@ public java.lang.String getUrl() { } } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -790,61 +735,54 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -852,20 +790,18 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -874,21 +810,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -896,68 +831,61 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -967,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.CrawledUrl) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CrawledUrl) private static final com.google.cloud.websecurityscanner.v1alpha.CrawledUrl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(); } @@ -981,16 +909,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawledUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawledUrl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CrawledUrl(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1005,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java index d92bd9a1..16190d96 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java @@ -1,102 +1,71 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/crawled_url.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface CrawledUrlOrBuilder - extends +public interface CrawledUrlOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.CrawledUrl) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java new file mode 100644 index 00000000..a7546587 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class CrawledUrlProto { + private CrawledUrlProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/websecurityscanner/v1alph" + + "a/crawled_url.proto\022\'google.cloud.websec" + + "urityscanner.v1alpha\"<\n\nCrawledUrl\022\023\n\013ht" + + "tp_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001" + + "(\tB\233\001\n+com.google.cloud.websecurityscann" + + "er.v1alphaB\017CrawledUrlProtoP\001ZYgoogle.go" + + "lang.org/genproto/googleapis/cloud/webse" + + "curityscanner/v1alpha;websecurityscanner" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor, + new java.lang.String[] { "HttpMethod", "Url", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java index 0f68af4a..b0a8845e 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `CreateScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest} */ -public final class CreateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) CreateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateScanConfigRequest.newBuilder() to construct. private CreateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateScanConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private CreateScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,42 +86,35 @@ private CreateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -152,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -205,34 +169,23 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -240,7 +193,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -318,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `CreateScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,16 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -495,8 +437,7 @@ public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(this); result.parent_ = parent_; if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; @@ -511,51 +452,46 @@ public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -582,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -621,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -646,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -717,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -784,15 +679,11 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanCon return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder builderForValue) { @@ -806,23 +697,17 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -834,15 +719,11 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanC return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -856,72 +737,55 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder - getScanConfigOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -931,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..42ad6f50 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface CreateScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the scanConfig field is set. + */ + boolean hasScanConfig(); + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The scanConfig. + */ + com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(); + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java similarity index 63% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java index 757144a2..5f14e639 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `DeleteScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest} */ -public final class DeleteScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) DeleteScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteScanConfigRequest.newBuilder() to construct. private DeleteScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..19772138 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface DeleteScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java index c980481d..e450b824 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A Finding resource represents a vulnerability instance identified during a
  * ScanRun.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Finding}
  */
-public final class Finding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Finding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.Finding)
     FindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Finding() {
     name_ = "";
     findingType_ = 0;
@@ -53,15 +35,16 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,170 +63,138 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              findingType_ = rawValue;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            findingType_ = rawValue;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fuzzedUrl_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            fuzzedUrl_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            body_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              reproductionUrl_ = s;
-              break;
-            }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            reproductionUrl_ = s;
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              frameUrl_ = s;
-              break;
-            }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            frameUrl_ = s;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              finalUrl_ = s;
-              break;
-            }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            finalUrl_ = s;
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              trackingId_ = s;
-              break;
+            trackingId_ = s;
+            break;
+          }
+          case 90: {
+            com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder subBuilder = null;
+            if (outdatedLibrary_ != null) {
+              subBuilder = outdatedLibrary_.toBuilder();
             }
-          case 90:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder subBuilder = null;
-              if (outdatedLibrary_ != null) {
-                subBuilder = outdatedLibrary_.toBuilder();
-              }
-              outdatedLibrary_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outdatedLibrary_);
-                outdatedLibrary_ = subBuilder.buildPartial();
-              }
-
-              break;
+            outdatedLibrary_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outdatedLibrary_);
+              outdatedLibrary_ = subBuilder.buildPartial();
             }
-          case 98:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder subBuilder =
-                  null;
-              if (violatingResource_ != null) {
-                subBuilder = violatingResource_.toBuilder();
-              }
-              violatingResource_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(violatingResource_);
-                violatingResource_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 98: {
+            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder subBuilder = null;
+            if (violatingResource_ != null) {
+              subBuilder = violatingResource_.toBuilder();
+            }
+            violatingResource_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(violatingResource_);
+              violatingResource_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder subBuilder =
-                  null;
-              if (vulnerableParameters_ != null) {
-                subBuilder = vulnerableParameters_.toBuilder();
-              }
-              vulnerableParameters_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableParameters_);
-                vulnerableParameters_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 106: {
+            com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder subBuilder = null;
+            if (vulnerableParameters_ != null) {
+              subBuilder = vulnerableParameters_.toBuilder();
+            }
+            vulnerableParameters_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableParameters_);
+              vulnerableParameters_ = subBuilder.buildPartial();
             }
-          case 114:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.Xss.Builder subBuilder = null;
-              if (xss_ != null) {
-                subBuilder = xss_.toBuilder();
-              }
-              xss_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.Xss.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(xss_);
-                xss_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 114: {
+            com.google.cloud.websecurityscanner.v1alpha.Xss.Builder subBuilder = null;
+            if (xss_ != null) {
+              subBuilder = xss_.toBuilder();
+            }
+            xss_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.Xss.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(xss_);
+              xss_ = subBuilder.buildPartial();
             }
-          case 122:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder subBuilder =
-                  null;
-              if (vulnerableHeaders_ != null) {
-                subBuilder = vulnerableHeaders_.toBuilder();
-              }
-              vulnerableHeaders_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableHeaders_);
-                vulnerableHeaders_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 122: {
+            com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder subBuilder = null;
+            if (vulnerableHeaders_ != null) {
+              subBuilder = vulnerableHeaders_.toBuilder();
+            }
+            vulnerableHeaders_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableHeaders_);
+              vulnerableHeaders_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -251,41 +202,36 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.Finding.class,
-            com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.Finding.class, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Types of Findings.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.Finding.FindingType} */ - public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { + public enum FindingType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The invalid finding type.
      * 
@@ -294,8 +240,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ FINDING_TYPE_UNSPECIFIED(0), /** - * - * *
      * A page that was served over HTTPS also resources over HTTP. A
      * man-in-the-middle attacker could tamper with the HTTP resource and gain
@@ -307,8 +251,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     MIXED_CONTENT(1),
     /**
-     *
-     *
      * 
      * The version of an included library is known to contain a security issue.
      * The scanner checks the version of library in use against a known list of
@@ -320,8 +262,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     OUTDATED_LIBRARY(2),
     /**
-     *
-     *
      * 
      * This type of vulnerability occurs when the value of a request parameter
      * is reflected at the beginning of the response, for example, in requests
@@ -335,8 +275,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     ROSETTA_FLASH(5),
     /**
-     *
-     *
      * 
      * A cross-site scripting (XSS) bug is found via JavaScript callback. For
      * detailed explanations on XSS, see
@@ -347,8 +285,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     XSS_CALLBACK(3),
     /**
-     *
-     *
      * 
      * A potential cross-site scripting (XSS) bug due to JavaScript breakage.
      * In some circumstances, the application under test might modify the test
@@ -365,8 +301,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     XSS_ERROR(4),
     /**
-     *
-     *
      * 
      * An application appears to be transmitting a password field in clear text.
      * An attacker can eavesdrop network traffic and sniff the password field.
@@ -376,8 +310,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     CLEAR_TEXT_PASSWORD(6),
     /**
-     *
-     *
      * 
      * An application returns sensitive content with an invalid content type,
      * or without an 'X-Content-Type-Options: nosniff' header.
@@ -387,8 +319,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     INVALID_CONTENT_TYPE(7),
     /**
-     *
-     *
      * 
      * A cross-site scripting (XSS) vulnerability in AngularJS module that
      * occurs when a user-provided string is interpolated by Angular.
@@ -398,8 +328,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     XSS_ANGULAR_CALLBACK(8),
     /**
-     *
-     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -408,8 +336,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_HEADER(9), /** - * - * *
      * Misspelled security header name.
      * 
@@ -418,8 +344,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ MISSPELLED_SECURITY_HEADER_NAME(10), /** - * - * *
      * Mismatching values in a duplicate security header.
      * 
@@ -431,8 +355,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The invalid finding type.
      * 
@@ -441,8 +363,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINDING_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A page that was served over HTTPS also resources over HTTP. A
      * man-in-the-middle attacker could tamper with the HTTP resource and gain
@@ -454,8 +374,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MIXED_CONTENT_VALUE = 1;
     /**
-     *
-     *
      * 
      * The version of an included library is known to contain a security issue.
      * The scanner checks the version of library in use against a known list of
@@ -467,8 +385,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int OUTDATED_LIBRARY_VALUE = 2;
     /**
-     *
-     *
      * 
      * This type of vulnerability occurs when the value of a request parameter
      * is reflected at the beginning of the response, for example, in requests
@@ -482,8 +398,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ROSETTA_FLASH_VALUE = 5;
     /**
-     *
-     *
      * 
      * A cross-site scripting (XSS) bug is found via JavaScript callback. For
      * detailed explanations on XSS, see
@@ -494,8 +408,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int XSS_CALLBACK_VALUE = 3;
     /**
-     *
-     *
      * 
      * A potential cross-site scripting (XSS) bug due to JavaScript breakage.
      * In some circumstances, the application under test might modify the test
@@ -512,8 +424,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int XSS_ERROR_VALUE = 4;
     /**
-     *
-     *
      * 
      * An application appears to be transmitting a password field in clear text.
      * An attacker can eavesdrop network traffic and sniff the password field.
@@ -523,8 +433,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CLEAR_TEXT_PASSWORD_VALUE = 6;
     /**
-     *
-     *
      * 
      * An application returns sensitive content with an invalid content type,
      * or without an 'X-Content-Type-Options: nosniff' header.
@@ -534,8 +442,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INVALID_CONTENT_TYPE_VALUE = 7;
     /**
-     *
-     *
      * 
      * A cross-site scripting (XSS) vulnerability in AngularJS module that
      * occurs when a user-provided string is interpolated by Angular.
@@ -545,8 +451,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int XSS_ANGULAR_CALLBACK_VALUE = 8;
     /**
-     *
-     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -555,8 +459,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_HEADER_VALUE = 9; /** - * - * *
      * Misspelled security header name.
      * 
@@ -565,8 +467,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MISSPELLED_SECURITY_HEADER_NAME_VALUE = 10; /** - * - * *
      * Mismatching values in a duplicate security header.
      * 
@@ -575,6 +475,7 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MISMATCHING_SECURITY_HEADER_VALUES_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -599,69 +500,58 @@ public static FindingType valueOf(int value) { */ public static FindingType forNumber(int value) { switch (value) { - case 0: - return FINDING_TYPE_UNSPECIFIED; - case 1: - return MIXED_CONTENT; - case 2: - return OUTDATED_LIBRARY; - case 5: - return ROSETTA_FLASH; - case 3: - return XSS_CALLBACK; - case 4: - return XSS_ERROR; - case 6: - return CLEAR_TEXT_PASSWORD; - case 7: - return INVALID_CONTENT_TYPE; - case 8: - return XSS_ANGULAR_CALLBACK; - case 9: - return INVALID_HEADER; - case 10: - return MISSPELLED_SECURITY_HEADER_NAME; - case 11: - return MISMATCHING_SECURITY_HEADER_VALUES; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + case 0: return FINDING_TYPE_UNSPECIFIED; + case 1: return MIXED_CONTENT; + case 2: return OUTDATED_LIBRARY; + case 5: return ROSETTA_FLASH; + case 3: return XSS_CALLBACK; + case 4: return XSS_ERROR; + case 6: return CLEAR_TEXT_PASSWORD; + case 7: return INVALID_CONTENT_TYPE; + case 8: return XSS_ANGULAR_CALLBACK; + case 9: return INVALID_HEADER; + case 10: return MISSPELLED_SECURITY_HEADER_NAME; + case 11: return MISMATCHING_SECURITY_HEADER_VALUES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + FindingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FindingType findValueByNumber(int number) { + return FindingType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FindingType findValueByNumber(int number) { - return FindingType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.Finding.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.Finding.getDescriptor().getEnumTypes().get(0); } private static final FindingType[] VALUES = values(); - public static FindingType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FindingType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -681,8 +571,6 @@ private FindingType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -690,7 +578,6 @@ private FindingType(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -699,15 +586,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -715,15 +601,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -734,53 +621,39 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; private int findingType_; /** - * - * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override - public int getFindingTypeValue() { + @java.lang.Override public int getFindingTypeValue() { return findingType_; } /** - * - * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The findingType. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; private volatile java.lang.Object httpMethod_; /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ @java.lang.Override @@ -789,30 +662,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -823,15 +696,12 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int FUZZED_URL_FIELD_NUMBER = 4; private volatile java.lang.Object fuzzedUrl_; /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ @java.lang.Override @@ -840,30 +710,30 @@ public java.lang.String getFuzzedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; } } /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -874,14 +744,11 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { public static final int BODY_FIELD_NUMBER = 5; private volatile java.lang.Object body_; /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ @java.lang.Override @@ -890,29 +757,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -923,14 +790,11 @@ public com.google.protobuf.ByteString getBodyBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ @java.lang.Override @@ -939,29 +803,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -972,15 +836,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; private volatile java.lang.Object reproductionUrl_; /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ @java.lang.Override @@ -989,30 +850,30 @@ public java.lang.String getReproductionUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; } } /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -1023,15 +884,12 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { public static final int FRAME_URL_FIELD_NUMBER = 8; private volatile java.lang.Object frameUrl_; /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ @java.lang.Override @@ -1040,30 +898,30 @@ public java.lang.String getFrameUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; } } /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -1074,14 +932,11 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { public static final int FINAL_URL_FIELD_NUMBER = 9; private volatile java.lang.Object finalUrl_; /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ @java.lang.Override @@ -1090,29 +945,29 @@ public java.lang.String getFinalUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } } /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -1123,15 +978,12 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { public static final int TRACKING_ID_FIELD_NUMBER = 10; private volatile java.lang.Object trackingId_; /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ @java.lang.Override @@ -1140,30 +992,30 @@ public java.lang.String getTrackingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; } } /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ @java.lang.Override - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -1174,14 +1026,11 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { public static final int OUTDATED_LIBRARY_FIELD_NUMBER = 11; private com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdatedLibrary_; /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ @java.lang.Override @@ -1189,25 +1038,18 @@ public boolean hasOutdatedLibrary() { return outdatedLibrary_ != null; } /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLibrary() { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } /** - * - * *
    * An addon containing information about outdated libraries.
    * 
@@ -1215,24 +1057,19 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLi * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { return getOutdatedLibrary(); } public static final int VIOLATING_RESOURCE_FIELD_NUMBER = 12; private com.google.cloud.websecurityscanner.v1alpha.ViolatingResource violatingResource_; /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return Whether the violatingResource field is set. */ @java.lang.Override @@ -1240,53 +1077,39 @@ public boolean hasViolatingResource() { return violatingResource_ != null; } /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return The violatingResource. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getViolatingResource() { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; } /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder - getViolatingResourceOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { return getViolatingResource(); } public static final int VULNERABLE_HEADERS_FIELD_NUMBER = 15; private com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerableHeaders_; /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return Whether the vulnerableHeaders field is set. */ @java.lang.Override @@ -1294,52 +1117,38 @@ public boolean hasVulnerableHeaders() { return vulnerableHeaders_ != null; } /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return The vulnerableHeaders. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getVulnerableHeaders() { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { return getVulnerableHeaders(); } public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER = 13; private com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerableParameters_; /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ @java.lang.Override @@ -1347,53 +1156,39 @@ public boolean hasVulnerableParameters() { return vulnerableParameters_ != null; } /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getVulnerableParameters() { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getVulnerableParameters() { + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { return getVulnerableParameters(); } public static final int XSS_FIELD_NUMBER = 14; private com.google.cloud.websecurityscanner.v1alpha.Xss xss_; /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return Whether the xss field is set. */ @java.lang.Override @@ -1401,25 +1196,18 @@ public boolean hasXss() { return xss_ != null; } /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return The xss. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Xss getXss() { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; } /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
@@ -1432,7 +1220,6 @@ public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1444,13 +1231,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (findingType_ - != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED - .getNumber()) { + if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, findingType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { @@ -1504,10 +1290,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (findingType_ - != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, findingType_); + if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, findingType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, httpMethod_); @@ -1534,20 +1319,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trackingId_); } if (outdatedLibrary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOutdatedLibrary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getOutdatedLibrary()); } if (violatingResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getViolatingResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getViolatingResource()); } if (vulnerableParameters_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVulnerableParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getVulnerableParameters()); } if (xss_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getXss()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getXss()); } if (vulnerableHeaders_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getVulnerableHeaders()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1557,43 +1346,56 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.Finding)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.Finding other = - (com.google.cloud.websecurityscanner.v1alpha.Finding) obj; + com.google.cloud.websecurityscanner.v1alpha.Finding other = (com.google.cloud.websecurityscanner.v1alpha.Finding) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (findingType_ != other.findingType_) return false; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getFuzzedUrl().equals(other.getFuzzedUrl())) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getReproductionUrl().equals(other.getReproductionUrl())) return false; - if (!getFrameUrl().equals(other.getFrameUrl())) return false; - if (!getFinalUrl().equals(other.getFinalUrl())) return false; - if (!getTrackingId().equals(other.getTrackingId())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getFuzzedUrl() + .equals(other.getFuzzedUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getReproductionUrl() + .equals(other.getReproductionUrl())) return false; + if (!getFrameUrl() + .equals(other.getFrameUrl())) return false; + if (!getFinalUrl() + .equals(other.getFinalUrl())) return false; + if (!getTrackingId() + .equals(other.getTrackingId())) return false; if (hasOutdatedLibrary() != other.hasOutdatedLibrary()) return false; if (hasOutdatedLibrary()) { - if (!getOutdatedLibrary().equals(other.getOutdatedLibrary())) return false; + if (!getOutdatedLibrary() + .equals(other.getOutdatedLibrary())) return false; } if (hasViolatingResource() != other.hasViolatingResource()) return false; if (hasViolatingResource()) { - if (!getViolatingResource().equals(other.getViolatingResource())) return false; + if (!getViolatingResource() + .equals(other.getViolatingResource())) return false; } if (hasVulnerableHeaders() != other.hasVulnerableHeaders()) return false; if (hasVulnerableHeaders()) { - if (!getVulnerableHeaders().equals(other.getVulnerableHeaders())) return false; + if (!getVulnerableHeaders() + .equals(other.getVulnerableHeaders())) return false; } if (hasVulnerableParameters() != other.hasVulnerableParameters()) return false; if (hasVulnerableParameters()) { - if (!getVulnerableParameters().equals(other.getVulnerableParameters())) return false; + if (!getVulnerableParameters() + .equals(other.getVulnerableParameters())) return false; } if (hasXss() != other.hasXss()) return false; if (hasXss()) { - if (!getXss().equals(other.getXss())) return false; + if (!getXss() + .equals(other.getXss())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1652,103 +1454,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Finding resource represents a vulnerability instance identified during a
    * ScanRun.
@@ -1756,23 +1551,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Finding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.Finding)
       com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.Finding.class,
-              com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.Finding.class, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.Finding.newBuilder()
@@ -1780,15 +1573,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1846,9 +1640,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1867,8 +1661,7 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.Finding buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.Finding result =
-          new com.google.cloud.websecurityscanner.v1alpha.Finding(this);
+      com.google.cloud.websecurityscanner.v1alpha.Finding result = new com.google.cloud.websecurityscanner.v1alpha.Finding(this);
       result.name_ = name_;
       result.findingType_ = findingType_;
       result.httpMethod_ = httpMethod_;
@@ -1912,39 +1705,38 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.Finding) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Finding) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Finding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1952,8 +1744,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.Finding other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2027,8 +1818,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.Finding) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.Finding) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2040,8 +1830,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2049,13 +1837,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2064,8 +1852,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2073,14 +1859,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2088,8 +1875,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2097,22 +1882,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2120,18 +1903,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2139,16 +1919,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2156,93 +1936,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int findingType_ = 0; /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override - public int getFindingTypeValue() { + @java.lang.Override public int getFindingTypeValue() { return findingType_; } /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @param value The enum numeric value on the wire for findingType to set. * @return This builder for chaining. */ public Builder setFindingTypeValue(int value) { - + findingType_ = value; onChanged(); return this; } /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The findingType. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; } /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType( - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { + public Builder setFindingType(com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { if (value == null) { throw new NullPointerException(); } - + findingType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = 0; onChanged(); return this; @@ -2250,21 +2010,19 @@ public Builder clearFindingType() { private java.lang.Object httpMethod_ = ""; /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -2273,22 +2031,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -2296,64 +2053,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -2361,21 +2111,19 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object fuzzedUrl_ = ""; /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ public java.lang.String getFuzzedUrl() { java.lang.Object ref = fuzzedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; @@ -2384,22 +2132,21 @@ public java.lang.String getFuzzedUrl() { } } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -2407,64 +2154,57 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { } } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrl(java.lang.String value) { + public Builder setFuzzedUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fuzzedUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return This builder for chaining. */ public Builder clearFuzzedUrl() { - + fuzzedUrl_ = getDefaultInstance().getFuzzedUrl(); onChanged(); return this; } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The bytes for fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFuzzedUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fuzzedUrl_ = value; onChanged(); return this; @@ -2472,20 +2212,18 @@ public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -2494,21 +2232,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -2516,61 +2253,54 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; @@ -2578,20 +2308,18 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2600,21 +2328,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2622,61 +2349,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2684,21 +2404,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object reproductionUrl_ = ""; /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ public java.lang.String getReproductionUrl() { java.lang.Object ref = reproductionUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; @@ -2707,22 +2425,21 @@ public java.lang.String getReproductionUrl() { } } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -2730,64 +2447,57 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { } } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrl(java.lang.String value) { + public Builder setReproductionUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reproductionUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return This builder for chaining. */ public Builder clearReproductionUrl() { - + reproductionUrl_ = getDefaultInstance().getReproductionUrl(); onChanged(); return this; } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The bytes for reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { + public Builder setReproductionUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reproductionUrl_ = value; onChanged(); return this; @@ -2795,21 +2505,19 @@ public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object frameUrl_ = ""; /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The frameUrl. */ public java.lang.String getFrameUrl() { java.lang.Object ref = frameUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; @@ -2818,22 +2526,21 @@ public java.lang.String getFrameUrl() { } } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -2841,64 +2548,57 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { } } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrl(java.lang.String value) { + public Builder setFrameUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + frameUrl_ = value; onChanged(); return this; } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return This builder for chaining. */ public Builder clearFrameUrl() { - + frameUrl_ = getDefaultInstance().getFrameUrl(); onChanged(); return this; } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The bytes for frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFrameUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameUrl_ = value; onChanged(); return this; @@ -2906,20 +2606,18 @@ public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object finalUrl_ = ""; /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; @@ -2928,21 +2626,20 @@ public java.lang.String getFinalUrl() { } } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -2950,61 +2647,54 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { } } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrl(java.lang.String value) { + public Builder setFinalUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + finalUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return This builder for chaining. */ public Builder clearFinalUrl() { - + finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFinalUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finalUrl_ = value; onChanged(); return this; @@ -3012,21 +2702,19 @@ public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object trackingId_ = ""; /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The trackingId. */ public java.lang.String getTrackingId() { java.lang.Object ref = trackingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; @@ -3035,22 +2723,21 @@ public java.lang.String getTrackingId() { } } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -3058,64 +2745,57 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { } } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingId(java.lang.String value) { + public Builder setTrackingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingId_ = value; onChanged(); return this; } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return This builder for chaining. */ public Builder clearTrackingId() { - + trackingId_ = getDefaultInstance().getTrackingId(); onChanged(); return this; } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The bytes for trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { + public Builder setTrackingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingId_ = value; onChanged(); return this; @@ -3123,55 +2803,41 @@ public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdatedLibrary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> - outdatedLibraryBuilder_; + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> outdatedLibraryBuilder_; /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ public boolean hasOutdatedLibrary() { return outdatedLibraryBuilder_ != null || outdatedLibrary_ != null; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLibrary() { if (outdatedLibraryBuilder_ == null) { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } else { return outdatedLibraryBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public Builder setOutdatedLibrary( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { + public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3185,8 +2851,6 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3205,23 +2869,17 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public Builder mergeOutdatedLibrary( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { + public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (outdatedLibrary_ != null) { outdatedLibrary_ = - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder( - outdatedLibrary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder(outdatedLibrary_).mergeFrom(value).buildPartial(); } else { outdatedLibrary_ = value; } @@ -3233,8 +2891,6 @@ public Builder mergeOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3253,42 +2909,33 @@ public Builder clearOutdatedLibrary() { return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder - getOutdatedLibraryBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder getOutdatedLibraryBuilder() { + onChanged(); return getOutdatedLibraryFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { if (outdatedLibraryBuilder_ != null) { return outdatedLibraryBuilder_.getMessageOrBuilder(); } else { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3296,17 +2943,14 @@ public Builder clearOutdatedLibrary() { * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> getOutdatedLibraryFieldBuilder() { if (outdatedLibraryBuilder_ == null) { - outdatedLibraryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder>( - getOutdatedLibrary(), getParentForChildren(), isClean()); + outdatedLibraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder>( + getOutdatedLibrary(), + getParentForChildren(), + isClean()); outdatedLibrary_ = null; } return outdatedLibraryBuilder_; @@ -3314,61 +2958,44 @@ public Builder clearOutdatedLibrary() { private com.google.cloud.websecurityscanner.v1alpha.ViolatingResource violatingResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> - violatingResourceBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> violatingResourceBuilder_; /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return Whether the violatingResource field is set. */ public boolean hasViolatingResource() { return violatingResourceBuilder_ != null || violatingResource_ != null; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return The violatingResource. */ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getViolatingResource() { if (violatingResourceBuilder_ == null) { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; } else { return violatingResourceBuilder_.getMessage(); } } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - public Builder setViolatingResource( - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { + public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3382,15 +3009,12 @@ public Builder setViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ public Builder setViolatingResource( com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder builderForValue) { @@ -3404,25 +3028,18 @@ public Builder setViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - public Builder mergeViolatingResource( - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { + public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (violatingResource_ != null) { violatingResource_ = - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder( - violatingResource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder(violatingResource_).mergeFrom(value).buildPartial(); } else { violatingResource_ = value; } @@ -3434,15 +3051,12 @@ public Builder mergeViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ public Builder clearViolatingResource() { if (violatingResourceBuilder_ == null) { @@ -3456,66 +3070,51 @@ public Builder clearViolatingResource() { return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder - getViolatingResourceBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder getViolatingResourceBuilder() { + onChanged(); return getViolatingResourceFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder - getViolatingResourceOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { if (violatingResourceBuilder_ != null) { return violatingResourceBuilder_.getMessageOrBuilder(); } else { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; } } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> getViolatingResourceFieldBuilder() { if (violatingResourceBuilder_ == null) { - violatingResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder>( - getViolatingResource(), getParentForChildren(), isClean()); + violatingResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder>( + getViolatingResource(), + getParentForChildren(), + isClean()); violatingResource_ = null; } return violatingResourceBuilder_; @@ -3523,58 +3122,41 @@ public Builder clearViolatingResource() { private com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerableHeaders_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> - vulnerableHeadersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> vulnerableHeadersBuilder_; /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return Whether the vulnerableHeaders field is set. */ public boolean hasVulnerableHeaders() { return vulnerableHeadersBuilder_ != null || vulnerableHeaders_ != null; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return The vulnerableHeaders. */ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } else { return vulnerableHeadersBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - public Builder setVulnerableHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { + public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3588,14 +3170,11 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ public Builder setVulnerableHeaders( com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder builderForValue) { @@ -3609,24 +3188,17 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - public Builder mergeVulnerableHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { + public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (vulnerableHeaders_ != null) { vulnerableHeaders_ = - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder( - vulnerableHeaders_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder(vulnerableHeaders_).mergeFrom(value).buildPartial(); } else { vulnerableHeaders_ = value; } @@ -3638,14 +3210,11 @@ public Builder mergeVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ public Builder clearVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { @@ -3659,63 +3228,48 @@ public Builder clearVulnerableHeaders() { return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder - getVulnerableHeadersBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder getVulnerableHeadersBuilder() { + onChanged(); return getVulnerableHeadersFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { if (vulnerableHeadersBuilder_ != null) { return vulnerableHeadersBuilder_.getMessageOrBuilder(); } else { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> getVulnerableHeadersFieldBuilder() { if (vulnerableHeadersBuilder_ == null) { - vulnerableHeadersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder>( - getVulnerableHeaders(), getParentForChildren(), isClean()); + vulnerableHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder>( + getVulnerableHeaders(), + getParentForChildren(), + isClean()); vulnerableHeaders_ = null; } return vulnerableHeadersBuilder_; @@ -3723,65 +3277,44 @@ public Builder clearVulnerableHeaders() { private com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerableParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> - vulnerableParametersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> vulnerableParametersBuilder_; /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ public boolean hasVulnerableParameters() { return vulnerableParametersBuilder_ != null || vulnerableParameters_ != null; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getVulnerableParameters() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } else { return vulnerableParametersBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - public Builder setVulnerableParameters( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { + public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3795,16 +3328,12 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ public Builder setVulnerableParameters( com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder builderForValue) { @@ -3818,26 +3347,18 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - public Builder mergeVulnerableParameters( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { + public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (vulnerableParameters_ != null) { vulnerableParameters_ = - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder( - vulnerableParameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder(vulnerableParameters_).mergeFrom(value).buildPartial(); } else { vulnerableParameters_ = value; } @@ -3849,16 +3370,12 @@ public Builder mergeVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ public Builder clearVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { @@ -3872,69 +3389,51 @@ public Builder clearVulnerableParameters() { return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder - getVulnerableParametersBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder getVulnerableParametersBuilder() { + onChanged(); return getVulnerableParametersFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { if (vulnerableParametersBuilder_ != null) { return vulnerableParametersBuilder_.getMessageOrBuilder(); } else { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> getVulnerableParametersFieldBuilder() { if (vulnerableParametersBuilder_ == null) { - vulnerableParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder>( - getVulnerableParameters(), getParentForChildren(), isClean()); + vulnerableParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder>( + getVulnerableParameters(), + getParentForChildren(), + isClean()); vulnerableParameters_ = null; } return vulnerableParametersBuilder_; @@ -3942,47 +3441,34 @@ public Builder clearVulnerableParameters() { private com.google.cloud.websecurityscanner.v1alpha.Xss xss_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Xss, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, - com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> - xssBuilder_; + com.google.cloud.websecurityscanner.v1alpha.Xss, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> xssBuilder_; /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return Whether the xss field is set. */ public boolean hasXss() { return xssBuilder_ != null || xss_ != null; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return The xss. */ public com.google.cloud.websecurityscanner.v1alpha.Xss getXss() { if (xssBuilder_ == null) { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; } else { return xssBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4003,15 +3489,14 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; */ - public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss.Builder builderForValue) { + public Builder setXss( + com.google.cloud.websecurityscanner.v1alpha.Xss.Builder builderForValue) { if (xssBuilder_ == null) { xss_ = builderForValue.build(); onChanged(); @@ -4022,8 +3507,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss.Builder bu return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4034,9 +3517,7 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { if (xssBuilder_ == null) { if (xss_ != null) { xss_ = - com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder(xss_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder(xss_).mergeFrom(value).buildPartial(); } else { xss_ = value; } @@ -4048,8 +3529,6 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4068,8 +3547,6 @@ public Builder clearXss() { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4077,13 +3554,11 @@ public Builder clearXss() { * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; */ public com.google.cloud.websecurityscanner.v1alpha.Xss.Builder getXssBuilder() { - + onChanged(); return getXssFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4094,14 +3569,11 @@ public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder( if (xssBuilder_ != null) { return xssBuilder_.getMessageOrBuilder(); } else { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? + com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; } } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4109,24 +3581,21 @@ public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder( * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Xss, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, - com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.Xss, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> getXssFieldBuilder() { if (xssBuilder_ == null) { - xssBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Xss, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, - com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder>( - getXss(), getParentForChildren(), isClean()); + xssBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.Xss, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder>( + getXss(), + getParentForChildren(), + isClean()); xss_ = null; } return xssBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4136,12 +3605,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Finding) private static final com.google.cloud.websecurityscanner.v1alpha.Finding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.Finding(); } @@ -4150,16 +3619,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.Finding getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4174,4 +3643,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java new file mode 100644 index 00000000..d9047d69 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class FindingAddonProto { + private FindingAddonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1alph" + + "a/finding_addon.proto\022\'google.cloud.webs" + + "ecurityscanner.v1alpha\"Q\n\017OutdatedLibrar" + + "y\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t" + + "\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021ViolatingRe" + + "source\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource" + + "_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017pa" + + "rameter_names\030\001 \003(\t\"\352\001\n\021VulnerableHeader" + + "s\022R\n\007headers\030\001 \003(\0132A.google.cloud.websec" + + "urityscanner.v1alpha.VulnerableHeaders.H" + + "eader\022Z\n\017missing_headers\030\002 \003(\0132A.google." + + "cloud.websecurityscanner.v1alpha.Vulnera" + + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" + + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\235\001\n+com.goo" + + "gle.cloud.websecurityscanner.v1alphaB\021Fi" + + "ndingAddonProtoP\001ZYgoogle.golang.org/gen" + + "proto/googleapis/cloud/websecurityscanne" + + "r/v1alpha;websecurityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor, + new java.lang.String[] { "LibraryName", "Version", "LearnMoreUrls", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor, + new java.lang.String[] { "ContentType", "ResourceUrl", }); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor, + new java.lang.String[] { "ParameterNames", }); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor, + new java.lang.String[] { "Headers", "MissingHeaders", }); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor, + new java.lang.String[] { "StackTraces", "ErrorMessage", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java similarity index 80% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java index a66e52d5..fda89e42 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface FindingOrBuilder - extends +public interface FindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.Finding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -33,13 +15,10 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -47,432 +26,333 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The enum numeric value on the wire for findingType. */ int getFindingTypeValue(); /** - * - * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The findingType. */ com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType(); /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ java.lang.String getFuzzedUrl(); /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - com.google.protobuf.ByteString getFuzzedUrlBytes(); + com.google.protobuf.ByteString + getFuzzedUrlBytes(); /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ java.lang.String getReproductionUrl(); /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - com.google.protobuf.ByteString getReproductionUrlBytes(); + com.google.protobuf.ByteString + getReproductionUrlBytes(); /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ java.lang.String getFrameUrl(); /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - com.google.protobuf.ByteString getFrameUrlBytes(); + com.google.protobuf.ByteString + getFrameUrlBytes(); /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ java.lang.String getFinalUrl(); /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - com.google.protobuf.ByteString getFinalUrlBytes(); + com.google.protobuf.ByteString + getFinalUrlBytes(); /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ java.lang.String getTrackingId(); /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - com.google.protobuf.ByteString getTrackingIdBytes(); + com.google.protobuf.ByteString + getTrackingIdBytes(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ boolean hasOutdatedLibrary(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLibrary(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return Whether the violatingResource field is set. */ boolean hasViolatingResource(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return The violatingResource. */ com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getViolatingResource(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder - getViolatingResourceOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return Whether the vulnerableHeaders field is set. */ boolean hasVulnerableHeaders(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return The vulnerableHeaders. */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getVulnerableHeaders(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ boolean hasVulnerableParameters(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getVulnerableParameters(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return Whether the xss field is set. */ boolean hasXss(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return The xss. */ com.google.cloud.websecurityscanner.v1alpha.Xss getXss(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java new file mode 100644 index 00000000..4ba38326 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/finding.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class FindingProto { + private FindingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/websecurityscanner/v1alph" + + "a/finding.proto\022\'google.cloud.websecurit" + + "yscanner.v1alpha\032\031google/api/resource.pr" + + "oto\032;google/cloud/websecurityscanner/v1a" + + "lpha/finding_addon.proto\"\351\010\n\007Finding\022\014\n\004" + + "name\030\001 \001(\t\022R\n\014finding_type\030\002 \001(\0162<.googl" + + "e.cloud.websecurityscanner.v1alpha.Findi" + + "ng.FindingType\022\023\n\013http_method\030\003 \001(\t\022\022\n\nf" + + "uzzed_url\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013descrip" + + "tion\030\006 \001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\t" + + "frame_url\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tr" + + "acking_id\030\n \001(\t\022R\n\020outdated_library\030\013 \001(" + + "\01328.google.cloud.websecurityscanner.v1al" + + "pha.OutdatedLibrary\022V\n\022violating_resourc" + + "e\030\014 \001(\0132:.google.cloud.websecurityscanne" + + "r.v1alpha.ViolatingResource\022V\n\022vulnerabl" + + "e_headers\030\017 \001(\0132:.google.cloud.websecuri" + + "tyscanner.v1alpha.VulnerableHeaders\022\\\n\025v" + + "ulnerable_parameters\030\r \001(\0132=.google.clou" + + "d.websecurityscanner.v1alpha.VulnerableP" + + "arameters\0229\n\003xss\030\016 \001(\0132,.google.cloud.we" + + "bsecurityscanner.v1alpha.Xss\"\266\002\n\013Finding" + + "Type\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\000\022\021\n\rMI" + + "XED_CONTENT\020\001\022\024\n\020OUTDATED_LIBRARY\020\002\022\021\n\rR" + + "OSETTA_FLASH\020\005\022\020\n\014XSS_CALLBACK\020\003\022\r\n\tXSS_" + + "ERROR\020\004\022\027\n\023CLEAR_TEXT_PASSWORD\020\006\022\030\n\024INVA" + + "LID_CONTENT_TYPE\020\007\022\030\n\024XSS_ANGULAR_CALLBA" + + "CK\020\010\022\022\n\016INVALID_HEADER\020\t\022#\n\037MISSPELLED_S" + + "ECURITY_HEADER_NAME\020\n\022&\n\"MISMATCHING_SEC" + + "URITY_HEADER_VALUES\020\013:\204\001\352A\200\001\n)websecurit" + + "yscanner.googleapis.com/Finding\022Sproject" + + "s/{project}/scanConfigs/{scan_config}/sc" + + "anRuns/{scan_run}/findings/{finding}B\230\001\n" + + "+com.google.cloud.websecurityscanner.v1a" + + "lphaB\014FindingProtoP\001ZYgoogle.golang.org/" + + "genproto/googleapis/cloud/websecuritysca" + + "nner/v1alpha;websecurityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor, + new java.lang.String[] { "Name", "FindingType", "HttpMethod", "FuzzedUrl", "Body", "Description", "ReproductionUrl", "FrameUrl", "FinalUrl", "TrackingId", "OutdatedLibrary", "ViolatingResource", "VulnerableHeaders", "VulnerableParameters", "Xss", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java index 3fa56903..53bba4a7 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A FindingTypeStats resource represents stats regarding a specific FindingType
  * of Findings under a given ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.FindingTypeStats}
  */
-public final class FindingTypeStats extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FindingTypeStats extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.FindingTypeStats)
     FindingTypeStatsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FindingTypeStats.newBuilder() to construct.
   private FindingTypeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FindingTypeStats() {
     findingType_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FindingTypeStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FindingTypeStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private FindingTypeStats(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              findingType_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              findingCount_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            findingType_ = rawValue;
+            break;
+          }
+          case 16: {
+
+            findingCount_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,77 +79,61 @@ private FindingTypeStats(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class,
-            com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
   }
 
   public static final int FINDING_TYPE_FIELD_NUMBER = 1;
   private int findingType_;
   /**
-   *
-   *
    * 
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override - public int getFindingTypeValue() { + @java.lang.Override public int getFindingTypeValue() { return findingType_; } /** - * - * *
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The findingType. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; } public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_; /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -176,7 +142,6 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,10 +153,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (findingType_ - != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, findingType_); } if (findingCount_ != 0) { @@ -206,13 +170,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (findingType_ - != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, findingType_); + if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, findingType_); } if (findingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, findingCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -222,16 +186,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats other = - (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) obj; + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats other = (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) obj; if (findingType_ != other.findingType_) return false; - if (getFindingCount() != other.getFindingCount()) return false; + if (getFindingCount() + != other.getFindingCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,104 +217,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A FindingTypeStats resource represents stats regarding a specific FindingType
    * of Findings under a given ScanRun.
@@ -358,23 +314,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.FindingTypeStats}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.FindingTypeStats)
       com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class,
-              com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.newBuilder()
@@ -382,15 +336,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -402,14 +357,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance();
     }
 
@@ -424,8 +378,7 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result =
-          new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(this);
+      com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(this);
       result.findingType_ = findingType_;
       result.findingCount_ = findingCount_;
       onBuilt();
@@ -436,39 +389,38 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -476,9 +428,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()) return this;
       if (other.findingType_ != 0) {
         setFindingTypeValue(other.getFindingTypeValue());
       }
@@ -504,8 +454,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -517,108 +466,85 @@ public Builder mergeFrom(
 
     private int findingType_ = 0;
     /**
-     *
-     *
      * 
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override - public int getFindingTypeValue() { + @java.lang.Override public int getFindingTypeValue() { return findingType_; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @param value The enum numeric value on the wire for findingType to set. * @return This builder for chaining. */ public Builder setFindingTypeValue(int value) { - + findingType_ = value; onChanged(); return this; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The findingType. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType( - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { + public Builder setFindingType(com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { if (value == null) { throw new NullPointerException(); } - + findingType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = 0; onChanged(); return this; } - private int findingCount_; + private int findingCount_ ; /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -626,43 +552,37 @@ public int getFindingCount() { return findingCount_; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @param value The findingCount to set. * @return This builder for chaining. */ public Builder setFindingCount(int value) { - + findingCount_ = value; onChanged(); return this; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return This builder for chaining. */ public Builder clearFindingCount() { - + findingCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -672,13 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) - private static final com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(); } @@ -687,16 +606,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindingTypeStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingTypeStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FindingTypeStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -711,4 +630,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java index e6025438..2da6562f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java @@ -1,62 +1,37 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface FindingTypeStatsOrBuilder - extends +public interface FindingTypeStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The enum numeric value on the wire for findingType. */ int getFindingTypeValue(); /** - * - * *
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The findingType. */ com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType(); /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ int getFindingCount(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java new file mode 100644 index 00000000..b2e45018 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class FindingTypeStatsProto { + private FindingTypeStatsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1alph" + + "a/finding_type_stats.proto\022\'google.cloud" + + ".websecurityscanner.v1alpha\0325google/clou" + + "d/websecurityscanner/v1alpha/finding.pro" + + "to\"}\n\020FindingTypeStats\022R\n\014finding_type\030\001" + + " \001(\0162<.google.cloud.websecurityscanner.v" + + "1alpha.Finding.FindingType\022\025\n\rfinding_co" + + "unt\030\002 \001(\005B\241\001\n+com.google.cloud.websecuri" + + "tyscanner.v1alphaB\025FindingTypeStatsProto" + + "P\001ZYgoogle.golang.org/genproto/googleapi" + + "s/cloud/websecurityscanner/v1alpha;webse" + + "curityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor, + new java.lang.String[] { "FindingType", "FindingCount", }); + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java index cfe8db4f..af43c13a 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `GetFinding` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetFindingRequest} */ -public final class GetFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) GetFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFindingRequest.newBuilder() to construct. private GetFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFindingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetFindingRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest other = - (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest other = (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetFinding` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) com.google.cloud.websecurityscanner.v1alpha.GetFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result = - new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(this); + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(); } @@ -644,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java new file mode 100644 index 00000000..171e1636 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface GetFindingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java index a84f8936..22e698f2 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `GetScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest} */ -public final class GetScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) GetScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanConfigRequest.newBuilder() to construct. private GetScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..90b3a5d6 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface GetScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java index 2073d4e2..a3975c92 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `GetScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanRunRequest} */ -public final class GetScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) GetScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanRunRequest.newBuilder() to construct. private GetScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest other = - (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest other = (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result = - new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(this); + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(); } @@ -644,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java new file mode 100644 index 00000000..7daa852d --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface GetScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java index 13be1c66..584b0f21 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest} */ -public final class ListCrawledUrlsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) ListCrawledUrlsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsRequest.newBuilder() to construct. private ListCrawledUrlsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListCrawledUrlsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListCrawledUrlsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -195,7 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -204,15 +173,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -220,15 +188,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -239,8 +208,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -248,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -257,7 +223,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -295,7 +261,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -305,17 +272,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,145 +308,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -491,16 +449,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.getDefaultInstance(); } @java.lang.Override @@ -514,8 +470,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -527,51 +482,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -602,9 +552,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,24 +564,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -642,25 +586,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -668,73 +609,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -742,8 +670,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -751,13 +677,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -766,8 +692,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -775,14 +699,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -790,8 +715,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -799,22 +722,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -822,18 +743,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -841,25 +759,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -867,7 +783,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -875,8 +790,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -884,19 +797,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -904,18 +814,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,32 +834,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,8 +869,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java index 18822600..ea234ea5 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListCrawledUrlsRequestOrBuilder - extends +public interface ListCrawledUrlsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -66,13 +39,10 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -80,14 +50,12 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -95,7 +63,6 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java index 3b2986b1..6afbaf1a 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse} */ -public final class ListCrawledUrlsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) ListCrawledUrlsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsResponse.newBuilder() to construct. private ListCrawledUrlsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsResponse() { crawledUrls_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListCrawledUrlsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl>(); - mutable_bitField0_ |= 0x00000001; - } - crawledUrls_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crawledUrls_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + crawledUrls_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListCrawledUrlsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -116,27 +94,22 @@ private ListCrawledUrlsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); } public static final int CRAWLED_URLS_FIELD_NUMBER = 1; private java.util.List crawledUrls_; /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List - getCrawledUrlsList() { + public java.util.List getCrawledUrlsList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -158,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCrawledUrlsOrBuilderList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -176,8 +144,6 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -189,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -206,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < crawledUrls_.size(); i++) { output.writeMessage(1, crawledUrls_.get(i)); } @@ -284,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < crawledUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, crawledUrls_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, crawledUrls_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) obj; - if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCrawledUrlsList() + .equals(other.getCrawledUrlsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCrawledUrlsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.getDefaultInstance(); } @java.lang.Override @@ -509,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse(this); int from_bitField0_ = bitField0_; if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -530,51 +478,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.getDefaultInstance()) return this; if (crawledUrlsBuilder_ == null) { if (!other.crawledUrls_.isEmpty()) { if (crawledUrls_.isEmpty()) { @@ -593,10 +536,9 @@ public Builder mergeFrom( crawledUrlsBuilder_ = null; crawledUrls_ = other.crawledUrls_; bitField0_ = (bitField0_ & ~0x00000001); - crawledUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCrawledUrlsFieldBuilder() - : null; + crawledUrlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCrawledUrlsFieldBuilder() : null; } else { crawledUrlsBuilder_.addAllMessages(other.crawledUrls_); } @@ -625,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List crawledUrls_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCrawledUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList( - crawledUrls_); + crawledUrls_ = new java.util.ArrayList(crawledUrls_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> - crawledUrlsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> crawledUrlsBuilder_; /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsList() { + public java.util.List getCrawledUrlsList() { if (crawledUrlsBuilder_ == null) { return java.util.Collections.unmodifiableList(crawledUrls_); } else { @@ -675,8 +605,6 @@ private void ensureCrawledUrlsIsMutable() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -691,8 +619,6 @@ public int getCrawledUrlsCount() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -707,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -730,8 +654,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -750,8 +672,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -772,8 +692,6 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.Crawle return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -795,8 +713,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -815,8 +731,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -835,8 +749,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -844,11 +756,11 @@ public Builder addCrawledUrls( * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ public Builder addAllCrawledUrls( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (crawledUrlsBuilder_ == null) { ensureCrawledUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crawledUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, crawledUrls_); onChanged(); } else { crawledUrlsBuilder_.addAllMessages(values); @@ -856,8 +768,6 @@ public Builder addAllCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -875,8 +785,6 @@ public Builder clearCrawledUrls() { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -894,8 +802,6 @@ public Builder removeCrawledUrls(int index) { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -907,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder getCrawled return getCrawledUrlsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -918,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder getCrawled public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( int index) { if (crawledUrlsBuilder_ == null) { - return crawledUrls_.get(index); - } else { + return crawledUrls_.get(index); } else { return crawledUrlsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsOrBuilderList() { + public java.util.List + getCrawledUrlsOrBuilderList() { if (crawledUrlsBuilder_ != null) { return crawledUrlsBuilder_.getMessageOrBuilderList(); } else { @@ -941,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -950,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawledUrlsBuilder() { - return getCrawledUrlsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -964,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawled */ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawledUrlsBuilder( int index) { - return getCrawledUrlsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsBuilderList() { + public java.util.List + getCrawledUrlsBuilderList() { return getCrawledUrlsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> getCrawledUrlsFieldBuilder() { if (crawledUrlsBuilder_ == null) { - crawledUrlsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder>( - crawledUrls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + crawledUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder>( + crawledUrls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); crawledUrls_ = null; } return crawledUrlsBuilder_; @@ -1001,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawled private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1024,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java index d8f6d0aa..0b93f80c 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListCrawledUrlsResponseOrBuilder - extends +public interface ListCrawledUrlsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - java.util.List getCrawledUrlsList(); + java.util.List + getCrawledUrlsList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -44,8 +25,6 @@ public interface ListCrawledUrlsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int index); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -54,19 +33,15 @@ public interface ListCrawledUrlsResponseOrBuilder */ int getCrawledUrlsCount(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - java.util.List + java.util.List getCrawledUrlsOrBuilderList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -77,29 +52,24 @@ com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawledUrlsOr int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java index 8edfe8f9..7491dab8 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest} */ -public final class ListFindingTypeStatsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) ListFindingTypeStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsRequest.newBuilder() to construct. private ListFindingTypeStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ListFindingTypeStatsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private ListFindingTypeStatsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,146 +208,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder - .class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -384,22 +345,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest build() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = - buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -408,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest b @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -419,52 +376,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -488,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -528,25 +473,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -554,80 +496,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -637,33 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,8 +601,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 00000000..0ee10079 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface ListFindingTypeStatsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java index 6d0b1ac7..0fd167ae 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse} */ -public final class ListFindingTypeStatsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) ListFindingTypeStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsResponse.newBuilder() to construct. private ListFindingTypeStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsResponse() { findingTypeStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private ListFindingTypeStatsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats>(); - mutable_bitField0_ |= 0x00000001; - } - findingTypeStats_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findingTypeStats_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + findingTypeStats_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private ListFindingTypeStatsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -108,108 +87,80 @@ private ListFindingTypeStatsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder.class); } public static final int FINDING_TYPE_STATS_FIELD_NUMBER = 1; - private java.util.List - findingTypeStats_; + private java.util.List findingTypeStats_; /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> + public java.util.List getFindingTypeStatsOrBuilderList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override public int getFindingTypeStatsCount() { return findingTypeStats_.size(); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index) { return findingTypeStats_.get(index); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { return findingTypeStats_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } @@ -235,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findingTypeStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findingTypeStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,16 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) obj; - if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; + if (!getFindingTypeStatsList() + .equals(other.getFindingTypeStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -276,148 +228,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder - .class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingTypeStatsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -431,22 +370,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse build() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = - buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -455,8 +391,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(this); int from_bitField0_ = bitField0_; if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -475,52 +410,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.getDefaultInstance()) return this; if (findingTypeStatsBuilder_ == null) { if (!other.findingTypeStats_.isEmpty()) { if (findingTypeStats_.isEmpty()) { @@ -539,10 +468,9 @@ public Builder mergeFrom( findingTypeStatsBuilder_ = null; findingTypeStats_ = other.findingTypeStats_; bitField0_ = (bitField0_ & ~0x00000001); - findingTypeStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingTypeStatsFieldBuilder() - : null; + findingTypeStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingTypeStatsFieldBuilder() : null; } else { findingTypeStatsBuilder_.addAllMessages(other.findingTypeStats_); } @@ -567,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -578,40 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - findingTypeStats_ = java.util.Collections.emptyList(); - + private java.util.List findingTypeStats_ = + java.util.Collections.emptyList(); private void ensureFindingTypeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList( - findingTypeStats_); + findingTypeStats_ = new java.util.ArrayList(findingTypeStats_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> - findingTypeStatsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> findingTypeStatsBuilder_; /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { if (findingTypeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(findingTypeStats_); } else { @@ -619,15 +533,11 @@ private void ensureFindingTypeStatsIsMutable() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public int getFindingTypeStatsCount() { if (findingTypeStatsBuilder_ == null) { @@ -637,18 +547,13 @@ public int getFindingTypeStatsCount() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { return findingTypeStats_.get(index); } else { @@ -656,15 +561,11 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTy } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { @@ -681,19 +582,14 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.set(index, builderForValue.build()); @@ -704,18 +600,13 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public Builder addFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { + public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { if (findingTypeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -729,15 +620,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { @@ -754,15 +641,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { @@ -776,19 +659,14 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.add(index, builderForValue.build()); @@ -799,22 +677,18 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder addAllFindingTypeStats( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingTypeStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findingTypeStats_); onChanged(); } else { findingTypeStatsBuilder_.addAllMessages(values); @@ -822,15 +696,11 @@ public Builder addAllFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder clearFindingTypeStats() { if (findingTypeStatsBuilder_ == null) { @@ -843,15 +713,11 @@ public Builder clearFindingTypeStats() { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder removeFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -864,53 +730,39 @@ public Builder removeFindingTypeStats(int index) { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder - getFindingTypeStatsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder getFindingTypeStatsBuilder( + int index) { return getFindingTypeStatsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { if (findingTypeStatsBuilder_ == null) { - return findingTypeStats_.get(index); - } else { + return findingTypeStats_.get(index); } else { return findingTypeStatsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> - getFindingTypeStatsOrBuilderList() { + public java.util.List + getFindingTypeStatsOrBuilderList() { if (findingTypeStatsBuilder_ != null) { return findingTypeStatsBuilder_.getMessageOrBuilderList(); } else { @@ -918,67 +770,45 @@ public Builder removeFindingTypeStats(int index) { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder - addFindingTypeStatsBuilder() { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder addFindingTypeStatsBuilder() { + return getFindingTypeStatsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder - addFindingTypeStatsBuilder(int index) { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder addFindingTypeStatsBuilder( + int index) { + return getFindingTypeStatsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsBuilderList() { + public java.util.List + getFindingTypeStatsBuilderList() { return getFindingTypeStatsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> getFindingTypeStatsFieldBuilder() { if (findingTypeStatsBuilder_ == null) { - findingTypeStatsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder>( + findingTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder>( findingTypeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -987,9 +817,9 @@ public Builder removeFindingTypeStats(int index) { } return findingTypeStatsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -999,33 +829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,8 +864,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java new file mode 100644 index 00000000..c9d44f1c --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface ListFindingTypeStatsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + java.util.List + getFindingTypeStatsList(); + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index); + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + int getFindingTypeStatsCount(); + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + java.util.List + getFindingTypeStatsOrBuilderList(); + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java index 97037754..6c3a1380 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsRequest} */ -public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) ListFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 32: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,43 +92,36 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -157,33 +130,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -204,7 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -213,15 +181,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -230,15 +197,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -249,8 +217,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -258,7 +224,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -267,15 +232,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -283,15 +247,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -302,8 +267,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -311,7 +274,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -320,7 +282,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -364,7 +326,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -374,18 +337,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,127 +377,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.newBuilder() @@ -539,15 +495,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -563,14 +520,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance(); } @@ -585,8 +541,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageToken_ = pageToken_; @@ -599,50 +554,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -677,9 +628,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -691,24 +640,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -717,25 +662,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -743,73 +685,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -817,8 +746,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -827,13 +754,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -842,8 +769,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -852,14 +777,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -867,8 +793,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -877,22 +801,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -901,18 +823,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -921,16 +840,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -938,8 +857,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -947,13 +864,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -962,8 +879,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -971,14 +886,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -986,8 +902,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -995,22 +909,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1018,18 +930,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1037,25 +946,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1063,7 +970,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1071,8 +977,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1080,19 +984,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1100,18 +1001,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1021,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1056,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java index a5bd85c0..0ea02890 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListFindingsRequestOrBuilder - extends +public interface ListFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -67,13 +40,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -82,14 +52,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -97,13 +65,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -111,14 +76,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -126,7 +89,6 @@ public interface ListFindingsRequestOrBuilder
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java index db67ac92..8c0f649d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsResponse} */ -public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) ListFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + findings_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -115,27 +94,22 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** - * - * *
    * The list of Findings returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getFi return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getFi * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -174,8 +144,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index return findings_.get(index); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) obj; - if (!getFindingsList().equals(other.getFindingsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getFindingsList() + .equals(other.getFindingsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,50 +478,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance()) return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -587,10 +536,9 @@ public Builder mergeFrom( findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingsFieldBuilder() - : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingsFieldBuilder() : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -619,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(findings_); + findings_ = new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Finding, - com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> - findingsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.Finding, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> findingsBuilder_; /** - * - * *
      * The list of Findings returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getFi } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -683,8 +619,6 @@ public int getFindingsCount() { } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -722,8 +654,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -742,8 +672,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -764,8 +692,6 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1alpha.Finding v return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -787,8 +713,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -807,8 +731,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -827,8 +749,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeFindings(int index) { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder getFindingsBu return getFindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder getFindingsBu public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsOrBuilder( int index) { if (findingsBuilder_ == null) { - return findings_.get(index); - } else { + return findings_.get(index); } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBu */ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBuilder( int index) { - return getFindingsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Finding, - com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.Finding, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Finding, - com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder>( - findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.Finding, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder>( + findings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); findings_ = null; } return findingsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java index b3f1b237..08fb2b10 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListFindingsResponseOrBuilder - extends +public interface ListFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - java.util.List getFindingsList(); + java.util.List + getFindingsList(); /** - * - * *
    * The list of Findings returned.
    * 
@@ -44,8 +25,6 @@ public interface ListFindingsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index); /** - * - * *
    * The list of Findings returned.
    * 
@@ -54,51 +33,43 @@ public interface ListFindingsResponseOrBuilder */ int getFindingsCount(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java index c3cc336c..9c830226 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest} */ -public final class ListScanConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) ListScanConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsRequest.newBuilder() to construct. private ListScanConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanConfigsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListScanConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -202,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -218,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,145 +306,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -489,16 +447,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.getDefaultInstance(); } @java.lang.Override @@ -512,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -525,51 +480,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -639,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -664,70 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -735,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -744,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -759,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -768,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -783,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -792,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -815,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -834,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -860,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -868,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -877,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -897,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -918,32 +827,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,8 +862,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java index 7cfe3b7f..57f8ce2d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanConfigsRequestOrBuilder - extends +public interface ListScanConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -64,13 +37,10 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -78,14 +48,12 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -93,7 +61,6 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java index c891010e..3214eeb4 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse} */ -public final class ListScanConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) ListScanConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsResponse.newBuilder() to construct. private ListScanConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsResponse() { scanConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListScanConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>(); - mutable_bitField0_ |= 0x00000001; - } - scanConfigs_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanConfigs_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListScanConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -116,27 +94,22 @@ private ListScanConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); } public static final int SCAN_CONFIGS_FIELD_NUMBER = 1; private java.util.List scanConfigs_; /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List - getScanConfigsList() { + public java.util.List getScanConfigsList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -158,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanConfigsOrBuilderList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -176,8 +144,6 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -189,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -206,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanConfigs_.size(); i++) { output.writeMessage(1, scanConfigs_.get(i)); } @@ -284,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) obj; - if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanConfigsList() + .equals(other.getScanConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.getDefaultInstance(); } @java.lang.Override @@ -509,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse(this); int from_bitField0_ = bitField0_; if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -530,51 +478,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.getDefaultInstance()) return this; if (scanConfigsBuilder_ == null) { if (!other.scanConfigs_.isEmpty()) { if (scanConfigs_.isEmpty()) { @@ -593,10 +536,9 @@ public Builder mergeFrom( scanConfigsBuilder_ = null; scanConfigs_ = other.scanConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - scanConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanConfigsFieldBuilder() - : null; + scanConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanConfigsFieldBuilder() : null; } else { scanConfigsBuilder_.addAllMessages(other.scanConfigs_); } @@ -625,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList( - scanConfigs_); + scanConfigs_ = new java.util.ArrayList(scanConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> - scanConfigsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> scanConfigsBuilder_; /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsList() { + public java.util.List getScanConfigsList() { if (scanConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(scanConfigs_); } else { @@ -675,8 +605,6 @@ private void ensureScanConfigsIsMutable() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -691,8 +619,6 @@ public int getScanConfigsCount() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -707,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -730,8 +654,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -750,8 +672,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -772,8 +692,6 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ScanCo return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -795,8 +713,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -815,8 +731,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -835,8 +749,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -844,11 +756,11 @@ public Builder addScanConfigs( * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ public Builder addAllScanConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (scanConfigsBuilder_ == null) { ensureScanConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanConfigs_); onChanged(); } else { scanConfigsBuilder_.addAllMessages(values); @@ -856,8 +768,6 @@ public Builder addAllScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -875,8 +785,6 @@ public Builder clearScanConfigs() { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -894,8 +802,6 @@ public Builder removeScanConfigs(int index) { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -907,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon return getScanConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -918,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigsOrBuilder( int index) { if (scanConfigsBuilder_ == null) { - return scanConfigs_.get(index); - } else { + return scanConfigs_.get(index); } else { return scanConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsOrBuilderList() { + public java.util.List + getScanConfigsOrBuilderList() { if (scanConfigsBuilder_ != null) { return scanConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -941,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -950,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanConfigsBuilder() { - return getScanConfigsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -964,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanCon */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanConfigsBuilder( int index) { - return getScanConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsBuilderList() { + public java.util.List + getScanConfigsBuilderList() { return getScanConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> getScanConfigsFieldBuilder() { if (scanConfigsBuilder_ == null) { - scanConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( - scanConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( + scanConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanConfigs_ = null; } return scanConfigsBuilder_; @@ -1001,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanCon private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1024,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java index d44d28c3..03bb5e60 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanConfigsResponseOrBuilder - extends +public interface ListScanConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - java.util.List getScanConfigsList(); + java.util.List + getScanConfigsList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanConfigsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int index); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -54,19 +33,15 @@ public interface ListScanConfigsResponseOrBuilder */ int getScanConfigsCount(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - java.util.List + java.util.List getScanConfigsOrBuilderList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -77,29 +52,24 @@ com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigsOr int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java index e595bbab..9df40675 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest} */ -public final class ListScanRunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) ListScanRunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsRequest.newBuilder() to construct. private ListScanRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanRunsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListScanRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -202,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -218,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance(); } @@ -509,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -522,50 +480,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -610,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -635,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -660,70 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -731,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -740,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -755,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -764,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -779,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -788,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -811,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -830,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -856,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -864,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -873,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -893,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -914,32 +827,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,8 +862,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java index 030d5799..9d35ecb9 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanRunsRequestOrBuilder - extends +public interface ListScanRunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -64,13 +37,10 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -78,14 +48,12 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -93,7 +61,6 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java index 892663f5..61db79ae 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse} */ -public final class ListScanRunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) ListScanRunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsResponse.newBuilder() to construct. private ListScanRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsResponse() { scanRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListScanRunsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanRuns_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanRuns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanRuns_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListScanRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -115,27 +94,22 @@ private ListScanRunsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); } public static final int SCAN_RUNS_FIELD_NUMBER = 1; private java.util.List scanRuns_; /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getSc return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getSc * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanRunsOrBuilderList() { return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -174,8 +144,6 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index return scanRuns_.get(index); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanRuns_.size(); i++) { output.writeMessage(1, scanRuns_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) obj; - if (!getScanRunsList().equals(other.getScanRunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanRunsList() + .equals(other.getScanRunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanRunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse(this); int from_bitField0_ = bitField0_; if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,50 +478,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance()) return this; if (scanRunsBuilder_ == null) { if (!other.scanRuns_.isEmpty()) { if (scanRuns_.isEmpty()) { @@ -587,10 +536,9 @@ public Builder mergeFrom( scanRunsBuilder_ = null; scanRuns_ = other.scanRuns_; bitField0_ = (bitField0_ & ~0x00000001); - scanRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanRunsFieldBuilder() - : null; + scanRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanRunsFieldBuilder() : null; } else { scanRunsBuilder_.addAllMessages(other.scanRuns_); } @@ -619,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanRuns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(scanRuns_); + scanRuns_ = new java.util.ArrayList(scanRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> - scanRunsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> scanRunsBuilder_; /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getSc } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -683,8 +619,6 @@ public int getScanRunsCount() { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -722,8 +654,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -742,8 +672,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -764,8 +692,6 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1alpha.ScanRun v return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -787,8 +713,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -807,8 +731,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -827,8 +749,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllScanRuns( java.lang.Iterable values) { if (scanRunsBuilder_ == null) { ensureScanRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanRuns_); onChanged(); } else { scanRunsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearScanRuns() { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeScanRuns(int index) { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getScanRunsBu return getScanRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getScanRunsBu public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsOrBuilder( int index) { if (scanRunsBuilder_ == null) { - return scanRuns_.get(index); - } else { + return scanRuns_.get(index); } else { return scanRunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsOrBuilderList() { + public java.util.List + getScanRunsOrBuilderList() { if (scanRunsBuilder_ != null) { return scanRunsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBuilder() { - return getScanRunsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBu */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBuilder( int index) { - return getScanRunsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsBuilderList() { + public java.util.List + getScanRunsBuilderList() { return getScanRunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> getScanRunsFieldBuilder() { if (scanRunsBuilder_ == null) { - scanRunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( - scanRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( + scanRuns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanRuns_ = null; } return scanRunsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java index 457cb69f..2a709997 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanRunsResponseOrBuilder - extends +public interface ListScanRunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - java.util.List getScanRunsList(); + java.util.List + getScanRunsList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanRunsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanRunsResponseOrBuilder */ int getScanRunsCount(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - java.util.List + java.util.List getScanRunsOrBuilderList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java index eb2983e5..84d2aba8 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information reported for an outdated library.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.OutdatedLibrary} */ -public final class OutdatedLibrary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutdatedLibrary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) OutdatedLibraryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutdatedLibrary.newBuilder() to construct. private OutdatedLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutdatedLibrary() { libraryName_ = ""; version_ = ""; @@ -45,15 +27,16 @@ private OutdatedLibrary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutdatedLibrary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutdatedLibrary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,37 +56,34 @@ private OutdatedLibrary( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - libraryName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + libraryName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - learnMoreUrls_.add(s); - break; + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + learnMoreUrls_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +91,8 @@ private OutdatedLibrary( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); @@ -120,33 +101,27 @@ private OutdatedLibrary( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); } public static final int LIBRARY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object libraryName_; /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ @java.lang.Override @@ -155,29 +130,29 @@ public java.lang.String getLibraryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; } } /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ @java.lang.Override - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -188,14 +163,11 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -204,29 +176,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -237,42 +209,34 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList learnMoreUrls_; /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_; } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -280,23 +244,20 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -349,17 +311,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary other = - (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) obj; + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary other = (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) obj; - if (!getLibraryName().equals(other.getLibraryName())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; + if (!getLibraryName() + .equals(other.getLibraryName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getLearnMoreUrlsList() + .equals(other.getLearnMoreUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -385,127 +349,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an outdated library.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.OutdatedLibrary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder() @@ -513,15 +467,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; } @java.lang.Override @@ -556,8 +511,7 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary result = - new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(this); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(this); int from_bitField0_ = bitField0_; result.libraryName_ = libraryName_; result.version_ = version_; @@ -574,39 +528,38 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary)other); } else { super.mergeFrom(other); return this; @@ -614,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance()) return this; if (!other.getLibraryName().isEmpty()) { libraryName_ = other.libraryName_; onChanged(); @@ -653,8 +605,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,25 +614,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object libraryName_ = ""; /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The libraryName. */ public java.lang.String getLibraryName() { java.lang.Object ref = libraryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; @@ -690,21 +638,20 @@ public java.lang.String getLibraryName() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -712,61 +659,54 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryName(java.lang.String value) { + public Builder setLibraryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + libraryName_ = value; onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return This builder for chaining. */ public Builder clearLibraryName() { - + libraryName_ = getDefaultInstance().getLibraryName(); onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The bytes for libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { + public Builder setLibraryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + libraryName_ = value; onChanged(); return this; @@ -774,20 +714,18 @@ public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -796,21 +734,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -818,112 +755,95 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLearnMoreUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_.getUnmodifiableView(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -931,90 +851,80 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index to set the value at. * @param value The learnMoreUrls to set. * @return This builder for chaining. */ - public Builder setLearnMoreUrls(int index, java.lang.String value) { + public Builder setLearnMoreUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrls(java.lang.String value) { + public Builder addLearnMoreUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param values The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addAllLearnMoreUrls(java.lang.Iterable values) { + public Builder addAllLearnMoreUrls( + java.lang.Iterable values) { ensureLearnMoreUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, learnMoreUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, learnMoreUrls_); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return This builder for chaining. */ public Builder clearLearnMoreUrls() { @@ -1024,30 +934,28 @@ public Builder clearLearnMoreUrls() { return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The bytes of the learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addLearnMoreUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1057,12 +965,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) private static final com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(); } @@ -1071,16 +979,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutdatedLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutdatedLibrary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutdatedLibrary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1095,4 +1003,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java index c12b9905..727833b2 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java @@ -1,126 +1,90 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface OutdatedLibraryOrBuilder - extends +public interface OutdatedLibraryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ java.lang.String getLibraryName(); /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - com.google.protobuf.ByteString getLibraryNameBytes(); + com.google.protobuf.ByteString + getLibraryNameBytes(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - java.util.List getLearnMoreUrlsList(); + java.util.List + getLearnMoreUrlsList(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ int getLearnMoreUrlsCount(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ java.lang.String getLearnMoreUrls(int index); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index); + com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java index 3f1d5d32..edab4a05 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/scan_config.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A ScanConfig resource contains the configurations to launch a scan.
  * next id: 12
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig}
  */
-public final class ScanConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig)
     ScanConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanConfig.newBuilder() to construct.
   private ScanConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanConfig() {
     name_ = "";
     displayName_ = "";
@@ -49,15 +31,16 @@ private ScanConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,138 +60,116 @@ private ScanConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 24: {
+
+            maxQps_ = input.readInt32();
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              startingUrls_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 24:
-            {
-              maxQps_ = input.readInt32();
-              break;
+            startingUrls_.add(s);
+            break;
+          }
+          case 42: {
+            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder subBuilder = null;
+            if (authentication_ != null) {
+              subBuilder = authentication_.toBuilder();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                startingUrls_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              startingUrls_.add(s);
-              break;
+            authentication_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(authentication_);
+              authentication_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder
-                  subBuilder = null;
-              if (authentication_ != null) {
-                subBuilder = authentication_.toBuilder();
-              }
-              authentication_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(authentication_);
-                authentication_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          case 48:
-            {
-              int rawValue = input.readEnum();
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
 
-              userAgent_ = rawValue;
-              break;
+            userAgent_ = rawValue;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              blacklistPatterns_.add(s);
-              break;
+            blacklistPatterns_.add(s);
+            break;
+          }
+          case 66: {
+            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder subBuilder = null;
+            if (schedule_ != null) {
+              subBuilder = schedule_.toBuilder();
+            }
+            schedule_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(schedule_);
+              schedule_ = subBuilder.buildPartial();
             }
-          case 66:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder subBuilder =
-                  null;
-              if (schedule_ != null) {
-                subBuilder = schedule_.toBuilder();
-              }
-              schedule_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(schedule_);
-                schedule_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 72: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              targetPlatforms_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 72:
-            {
+            targetPlatforms_.add(rawValue);
+            break;
+          }
+          case 74: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                 targetPlatforms_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000004;
               }
               targetPlatforms_.add(rawValue);
-              break;
             }
-          case 74:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                  targetPlatforms_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000004;
-                }
-                targetPlatforms_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 90: {
+            com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder subBuilder = null;
+            if (latestRun_ != null) {
+              subBuilder = latestRun_.toBuilder();
             }
-          case 90:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder subBuilder = null;
-              if (latestRun_ != null) {
-                subBuilder = latestRun_.toBuilder();
-              }
-              latestRun_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(latestRun_);
-                latestRun_ = subBuilder.buildPartial();
-              }
-
-              break;
+            latestRun_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(latestRun_);
+              latestRun_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -216,7 +177,8 @@ private ScanConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         startingUrls_ = startingUrls_.getUnmodifiableView();
@@ -231,35 +193,29 @@ private ScanConfig(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class,
-            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Type of user agents used for scanning.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent} */ - public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { + public enum UserAgent + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -268,8 +224,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ USER_AGENT_UNSPECIFIED(0), /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -278,8 +232,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_LINUX(1), /** - * - * *
      * Chrome on Android.
      * 
@@ -288,8 +240,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_ANDROID(2), /** - * - * *
      * Safari on IPhone.
      * 
@@ -301,8 +251,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -311,8 +259,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -321,8 +267,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_LINUX_VALUE = 1; /** - * - * *
      * Chrome on Android.
      * 
@@ -331,8 +275,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_ANDROID_VALUE = 2; /** - * - * *
      * Safari on IPhone.
      * 
@@ -341,6 +283,7 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SAFARI_IPHONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -365,53 +308,50 @@ public static UserAgent valueOf(int value) { */ public static UserAgent forNumber(int value) { switch (value) { - case 0: - return USER_AGENT_UNSPECIFIED; - case 1: - return CHROME_LINUX; - case 2: - return CHROME_ANDROID; - case 3: - return SAFARI_IPHONE; - default: - return null; + case 0: return USER_AGENT_UNSPECIFIED; + case 1: return CHROME_LINUX; + case 2: return CHROME_ANDROID; + case 3: return SAFARI_IPHONE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserAgent> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserAgent findValueByNumber(int number) { + return UserAgent.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UserAgent findValueByNumber(int number) { - return UserAgent.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor().getEnumTypes().get(0); } private static final UserAgent[] VALUES = values(); - public static UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UserAgent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -429,18 +369,15 @@ private UserAgent(int value) { } /** - * - * *
    * Cloud platforms supported by Cloud Web Security Scanner.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform} */ - public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetPlatform + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -450,8 +387,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -460,8 +395,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ APP_ENGINE(1), /** - * - * *
      * Google Compute Engine service.
      * 
@@ -473,8 +406,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -484,8 +415,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -494,8 +423,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APP_ENGINE_VALUE = 1; /** - * - * *
      * Google Compute Engine service.
      * 
@@ -504,6 +431,7 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPUTE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -528,51 +456,49 @@ public static TargetPlatform valueOf(int value) { */ public static TargetPlatform forNumber(int value) { switch (value) { - case 0: - return TARGET_PLATFORM_UNSPECIFIED; - case 1: - return APP_ENGINE; - case 2: - return COMPUTE; - default: - return null; + case 0: return TARGET_PLATFORM_UNSPECIFIED; + case 1: return APP_ENGINE; + case 2: return COMPUTE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + TargetPlatform> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetPlatform findValueByNumber(int number) { + return TargetPlatform.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetPlatform findValueByNumber(int number) { - return TargetPlatform.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor().getEnumTypes().get(1); } private static final TargetPlatform[] VALUES = values(); - public static TargetPlatform valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetPlatform valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -589,132 +515,97 @@ private TargetPlatform(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform) } - public interface AuthenticationOrBuilder - extends + public interface AuthenticationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ boolean hasGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getGoogleAccount(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ boolean hasCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getCustomAccount(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder(); - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.AuthenticationCase - getAuthenticationCase(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); } /** - * - * *
    * Scan authentication configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication} */ - public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Authentication extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) AuthenticationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Authentication() {} + private Authentication() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Authentication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Authentication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -733,67 +624,41 @@ private Authentication( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; + case 10: { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder subBuilder = null; + if (authenticationCase_ == 1) { + subBuilder = ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_).toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 2; - break; + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_); + authentication_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authenticationCase_ = 1; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder subBuilder = null; + if (authenticationCase_ == 2) { + subBuilder = ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_).toBuilder(); + } + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -801,109 +666,88 @@ private Authentication( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder.class); } - public interface GoogleAccountOrBuilder - extends + public interface GoogleAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } /** - * - * *
      * Describes authentication configuration that uses a Google account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} */ - public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GoogleAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) GoogleAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GoogleAccount.newBuilder() to construct. private GoogleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GoogleAccount() { username_ = ""; password_ = ""; @@ -911,15 +755,16 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GoogleAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GoogleAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -938,27 +783,25 @@ private GoogleAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -966,42 +809,34 @@ private GoogleAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -1010,29 +845,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1043,17 +878,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -1062,32 +892,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1096,7 +924,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1108,7 +935,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -1138,19 +966,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1171,116 +997,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1290,53 +1088,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a Google account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1348,23 +1137,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - build() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount build() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1372,12 +1157,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - result = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount(this); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount buildPartial() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -1388,58 +1169,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -1463,15 +1232,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1483,20 +1248,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1505,21 +1268,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1527,61 +1289,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1589,23 +1344,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1614,24 +1365,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1639,75 +1387,61 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1720,36 +1454,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1761,118 +1489,94 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomAccountOrBuilder - extends + public interface CustomAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ java.lang.String getLoginUrl(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ - com.google.protobuf.ByteString getLoginUrlBytes(); + com.google.protobuf.ByteString + getLoginUrlBytes(); } /** - * - * *
      * Describes authentication configuration that uses a custom account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} */ - public static final class CustomAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CustomAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) CustomAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAccount.newBuilder() to construct. private CustomAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomAccount() { username_ = ""; password_ = ""; @@ -1881,15 +1585,16 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CustomAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1908,34 +1613,31 @@ private CustomAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - loginUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + loginUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1943,42 +1645,34 @@ private CustomAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -1987,29 +1681,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2020,17 +1714,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -2039,32 +1728,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2075,14 +1762,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int LOGIN_URL_FIELD_NUMBER = 3; private volatile java.lang.Object loginUrl_; /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ @java.lang.Override @@ -2091,29 +1775,29 @@ public java.lang.String getLoginUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; } } /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2122,7 +1806,6 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2134,7 +1817,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2170,20 +1854,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getLoginUrl().equals(other.getLoginUrl())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getLoginUrl() + .equals(other.getLoginUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2206,116 +1889,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2325,53 +1980,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a custom account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2385,23 +2031,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - build() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount build() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2409,12 +2051,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - result = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount(this); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount buildPartial() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount(this); result.username_ = username_; result.password_ = password_; result.loginUrl_ = loginUrl_; @@ -2426,58 +2064,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -2505,15 +2131,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2525,20 +2147,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2547,21 +2167,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2569,61 +2188,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2631,23 +2243,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2656,24 +2264,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2681,70 +2286,57 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -2752,20 +2344,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object loginUrl_ = ""; /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; @@ -2774,21 +2364,20 @@ public java.lang.String getLoginUrl() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2796,66 +2385,58 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrl(java.lang.String value) { + public Builder setLoginUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + loginUrl_ = value; onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLoginUrl() { - + loginUrl_ = getDefaultInstance().getLoginUrl(); onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { + public Builder setLoginUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loginUrl_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2868,36 +2449,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2909,24 +2484,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int authenticationCase_ = 0; private java.lang.Object authentication_; - public enum AuthenticationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), AUTHENTICATION_NOT_SET(0); private final int value; - private AuthenticationCase(int value) { this.value = value; } @@ -2942,38 +2514,30 @@ public static AuthenticationCase valueOf(int value) { public static AuthenticationCase forNumber(int value) { switch (value) { - case 1: - return GOOGLE_ACCOUNT; - case 2: - return CUSTOM_ACCOUNT; - case 0: - return AUTHENTICATION_NOT_SET; - default: - return null; + case 1: return GOOGLE_ACCOUNT; + case 2: return CUSTOM_ACCOUNT; + case 0: return AUTHENTICATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public static final int GOOGLE_ACCOUNT_FIELD_NUMBER = 1; /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -2981,63 +2545,42 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } public static final int CUSTOM_ACCOUNT_FIELD_NUMBER = 2; /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -3045,53 +2588,36 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3103,18 +2629,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (authenticationCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - authentication_); + output.writeMessage(1, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - authentication_); + output.writeMessage(2, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); } unknownFields.writeTo(output); } @@ -3126,20 +2647,12 @@ public int getSerializedSize() { size = 0; if (authenticationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3149,21 +2662,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) obj; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 1: - if (!getGoogleAccount().equals(other.getGoogleAccount())) return false; + if (!getGoogleAccount() + .equals(other.getGoogleAccount())) return false; break; case 2: - if (!getCustomAccount().equals(other.getCustomAccount())) return false; + if (!getCustomAccount() + .equals(other.getCustomAccount())) return false; break; case 0: default: @@ -3197,95 +2711,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3295,50 +2801,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan authentication configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder - .class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3348,22 +2848,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication build() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = - buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3372,8 +2869,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication bui @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(this); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(this); if (authenticationCase_ == 1) { if (googleAccountBuilder_ == null) { result.authentication_ = authentication_; @@ -3397,69 +2893,58 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance()) return this; switch (other.getAuthenticationCase()) { - case GOOGLE_ACCOUNT: - { - mergeGoogleAccount(other.getGoogleAccount()); - break; - } - case CUSTOM_ACCOUNT: - { - mergeCustomAccount(other.getCustomAccount()); - break; - } - case AUTHENTICATION_NOT_SET: - { - break; - } + case GOOGLE_ACCOUNT: { + mergeGoogleAccount(other.getGoogleAccount()); + break; + } + case CUSTOM_ACCOUNT: { + mergeCustomAccount(other.getCustomAccount()); + break; + } + case AUTHENTICATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3480,9 +2965,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3491,12 +2974,12 @@ public Builder mergeFrom( } return this; } - private int authenticationCase_ = 0; private java.lang.Object authentication_; - - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public Builder clearAuthentication() { @@ -3506,24 +2989,15 @@ public Builder clearAuthentication() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder> - googleAccountBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder> googleAccountBuilder_; /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -3531,51 +3005,35 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } else { if (authenticationCase_ == 1) { return googleAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - value) { + public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3589,20 +3047,14 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3613,32 +3065,18 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder mergeGoogleAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - value) { + public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { - if (authenticationCase_ == 1 - && authentication_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 1 && + authentication_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -3654,15 +3092,11 @@ public Builder mergeGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -3681,111 +3115,67 @@ public Builder clearGoogleAccount() { return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder - getGoogleAccountBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { return googleAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder> getGoogleAccountFieldBuilder() { if (googleAccountBuilder_ == null) { if (!(authenticationCase_ == 1)) { - authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } - googleAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_, + googleAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 1; - onChanged(); - ; + onChanged();; return googleAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder> - customAccountBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder> customAccountBuilder_; /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -3793,51 +3183,35 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (customAccountBuilder_ == null) { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } else { if (authenticationCase_ == 2) { return customAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - value) { + public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3851,20 +3225,14 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder builderForValue) { if (customAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3875,32 +3243,18 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder mergeCustomAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - value) { + public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { - if (authenticationCase_ == 2 - && authentication_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 2 && + authentication_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -3916,15 +3270,11 @@ public Builder mergeCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder clearCustomAccount() { if (customAccountBuilder_ == null) { @@ -3943,93 +3293,58 @@ public Builder clearCustomAccount() { return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder - getCustomAccountBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder getCustomAccountBuilder() { return getCustomAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if ((authenticationCase_ == 2) && (customAccountBuilder_ != null)) { return customAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder> getCustomAccountFieldBuilder() { if (customAccountBuilder_ == null) { if (!(authenticationCase_ == 2)) { - authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } - customAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_, + customAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 2; - onChanged(); - ; + onChanged();; return customAccountBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4042,33 +3357,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4080,20 +3392,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ScheduleOrBuilder - extends + public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4102,13 +3411,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4117,13 +3423,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4136,50 +3439,46 @@ public interface ScheduleOrBuilder
     com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ int getIntervalDurationDays(); } /** - * - * *
    * Scan schedule configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule} */ - public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) ScheduleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Schedule() {} + private Schedule() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4198,33 +3497,31 @@ private Schedule( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); } - case 16: - { - intervalDurationDays_ = input.readInt32(); - break; + scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + intervalDurationDays_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4232,33 +3529,29 @@ private Schedule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); } public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp scheduleTime_; /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4267,7 +3560,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -4275,8 +3567,6 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4285,18 +3575,13 @@ public boolean hasScheduleTime() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4314,14 +3599,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_;
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -4330,7 +3612,6 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4342,7 +3623,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scheduleTime_ != null) { output.writeMessage(1, getScheduleTime()); } @@ -4359,10 +3641,12 @@ public int getSerializedSize() { size = 0; if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getScheduleTime()); } if (intervalDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, intervalDurationDays_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4372,19 +3656,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) obj; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; + if (!getScheduleTime() + .equals(other.getScheduleTime())) return false; } - if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; + if (getIntervalDurationDays() + != other.getIntervalDurationDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4408,95 +3693,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4506,49 +3783,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan schedule configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4564,14 +3836,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance(); } @@ -4586,8 +3857,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(this); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(this); if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; } else { @@ -4602,52 +3872,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance()) return this; if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } @@ -4673,9 +3937,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4687,13 +3949,8 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4702,15 +3959,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4719,21 +3973,16 @@ public boolean hasScheduleTime() {
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4757,8 +4006,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4768,7 +4015,8 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp schedule_time = 1;
        */
-      public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setScheduleTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (scheduleTimeBuilder_ == null) {
           scheduleTime_ = builderForValue.build();
           onChanged();
@@ -4779,8 +4027,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4794,9 +4040,7 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
           if (scheduleTime_ != null) {
             scheduleTime_ =
-                com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial();
           } else {
             scheduleTime_ = value;
           }
@@ -4808,8 +4052,6 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4831,8 +4073,6 @@ public Builder clearScheduleTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4843,13 +4083,11 @@ public Builder clearScheduleTime() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
-
+        
         onChanged();
         return getScheduleTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4863,14 +4101,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
         if (scheduleTimeBuilder_ != null) {
           return scheduleTimeBuilder_.getMessageOrBuilder();
         } else {
-          return scheduleTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : scheduleTime_;
+          return scheduleTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
         }
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4881,32 +4116,26 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getScheduleTimeFieldBuilder() {
         if (scheduleTimeBuilder_ == null) {
-          scheduleTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getScheduleTime(), getParentForChildren(), isClean());
+          scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getScheduleTime(),
+                  getParentForChildren(),
+                  isClean());
           scheduleTime_ = null;
         }
         return scheduleTimeBuilder_;
       }
 
-      private int intervalDurationDays_;
+      private int intervalDurationDays_ ;
       /**
-       *
-       *
        * 
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -4914,41 +4143,34 @@ public int getIntervalDurationDays() { return intervalDurationDays_; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The intervalDurationDays to set. * @return This builder for chaining. */ public Builder setIntervalDurationDays(int value) { - + intervalDurationDays_ = value; onChanged(); return this; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { - + intervalDurationDays_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4961,32 +4183,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4998,17 +4218,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5016,7 +4234,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -5025,15 +4242,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5041,15 +4257,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -5060,14 +4277,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -5076,29 +4290,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -5109,8 +4323,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_; /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5119,7 +4331,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -5130,42 +4341,34 @@ public int getMaxQps() { public static final int STARTING_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList startingUrls_; /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_; } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -5173,34 +4376,28 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } public static final int AUTHENTICATION_FIELD_NUMBER = 5; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication_; /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ @java.lang.Override @@ -5208,121 +4405,92 @@ public boolean hasAuthentication() { return authentication_ != null; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return The authentication. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getAuthentication() { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { return getAuthentication(); } public static final int USER_AGENT_FIELD_NUMBER = 6; private int userAgent_; /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList blacklistPatterns_; /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_; } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -5330,33 +4498,28 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } public static final int SCHEDULE_FIELD_NUMBER = 8; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule_; /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ @java.lang.Override @@ -5364,25 +4527,18 @@ public boolean hasSchedule() { return schedule_ != null; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedule() { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -5390,64 +4546,43 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedu * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { return getSchedule(); } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; private java.util.List targetPlatforms_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform> - targetPlatforms_converter_ = + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform> targetPlatforms_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>() { - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform convert( - java.lang.Integer from) { + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.valueOf( - from); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.valueOf(from); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.UNRECOGNIZED : result; } }; /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ @java.lang.Override - public java.util.List - getTargetPlatformsList() { + public java.util.List getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>( - targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ @java.lang.Override @@ -5455,55 +4590,40 @@ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms(int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ @java.lang.Override - public java.util.List getTargetPlatformsValueList() { + public java.util.List + getTargetPlatformsValueList() { return targetPlatforms_; } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -5511,20 +4631,16 @@ public java.util.List getTargetPlatformsValueList() { public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } - private int targetPlatformsMemoizedSerializedSize; public static final int LATEST_RUN_FIELD_NUMBER = 11; private com.google.cloud.websecurityscanner.v1alpha.ScanRun latestRun_; /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ @java.lang.Override @@ -5532,25 +4648,18 @@ public boolean hasLatestRun() { return latestRun_ != null; } /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return The latestRun. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun() { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; } /** - * - * *
    * Latest ScanRun if available.
    * 
@@ -5563,7 +4672,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRun } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5575,7 +4683,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -5592,9 +4701,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (authentication_ != null) { output.writeMessage(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { + if (userAgent_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { output.writeEnum(6, userAgent_); } for (int i = 0; i < blacklistPatterns_.size(); i++) { @@ -5629,7 +4736,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (maxQps_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxQps_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxQps_); } { int dataSize = 0; @@ -5640,12 +4748,12 @@ public int getSerializedSize() { size += 1 * getStartingUrlsList().size(); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthentication()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, userAgent_); + if (userAgent_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, userAgent_); } { int dataSize = 0; @@ -5656,23 +4764,24 @@ public int getSerializedSize() { size += 1 * getBlacklistPatternsList().size(); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSchedule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSchedule()); } { int dataSize = 0; for (int i = 0; i < targetPlatforms_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(targetPlatforms_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(targetPlatforms_.get(i)); } size += dataSize; - if (!getTargetPlatformsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - targetPlatformsMemoizedSerializedSize = dataSize; + if (!getTargetPlatformsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }targetPlatformsMemoizedSerializedSize = dataSize; } if (latestRun_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLatestRun()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLatestRun()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5682,32 +4791,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getMaxQps() != other.getMaxQps()) return false; - if (!getStartingUrlsList().equals(other.getStartingUrlsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getMaxQps() + != other.getMaxQps()) return false; + if (!getStartingUrlsList() + .equals(other.getStartingUrlsList())) return false; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication().equals(other.getAuthentication())) return false; + if (!getAuthentication() + .equals(other.getAuthentication())) return false; } if (userAgent_ != other.userAgent_) return false; - if (!getBlacklistPatternsList().equals(other.getBlacklistPatternsList())) return false; + if (!getBlacklistPatternsList() + .equals(other.getBlacklistPatternsList())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule().equals(other.getSchedule())) return false; + if (!getSchedule() + .equals(other.getSchedule())) return false; } if (!targetPlatforms_.equals(other.targetPlatforms_)) return false; if (hasLatestRun() != other.hasLatestRun()) return false; if (hasLatestRun()) { - if (!getLatestRun().equals(other.getLatestRun())) return false; + if (!getLatestRun() + .equals(other.getLatestRun())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -5758,104 +4874,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanConfig resource contains the configurations to launch a scan.
    * next id: 12
@@ -5863,23 +4971,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig)
       com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class,
-              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder()
@@ -5887,15 +4993,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -5935,9 +5042,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
     }
 
     @java.lang.Override
@@ -5956,8 +5063,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.ScanConfig buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.ScanConfig result =
-          new com.google.cloud.websecurityscanner.v1alpha.ScanConfig(this);
+      com.google.cloud.websecurityscanner.v1alpha.ScanConfig result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -6001,39 +5107,38 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -6041,8 +5146,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -6115,8 +5219,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -6125,13 +5228,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6139,13 +5239,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6154,8 +5254,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6163,14 +5261,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6178,8 +5277,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6187,22 +5284,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6210,18 +5305,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6229,16 +5321,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -6246,20 +5338,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -6268,21 +5358,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -6290,70 +5379,61 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int maxQps_; + private int maxQps_ ; /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6362,7 +5442,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -6370,8 +5449,6 @@ public int getMaxQps() { return maxQps_; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6380,19 +5457,16 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; - * * @param value The maxQps to set. * @return This builder for chaining. */ public Builder setMaxQps(int value) { - + maxQps_ = value; onChanged(); return this; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6401,62 +5475,51 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; - * * @return This builder for chaining. */ public Builder clearMaxQps() { - + maxQps_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList startingUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStartingUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -6464,90 +5527,80 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The startingUrls to set. * @return This builder for chaining. */ - public Builder setStartingUrls(int index, java.lang.String value) { + public Builder setStartingUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrls(java.lang.String value) { + public Builder addStartingUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The startingUrls to add. * @return This builder for chaining. */ - public Builder addAllStartingUrls(java.lang.Iterable values) { + public Builder addAllStartingUrls( + java.lang.Iterable values) { ensureStartingUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startingUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, startingUrls_); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearStartingUrls() { @@ -6557,22 +5610,20 @@ public Builder clearStartingUrls() { return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addStartingUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); @@ -6581,63 +5632,44 @@ public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> - authenticationBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> authenticationBuilder_; /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return The authentication. */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - getAuthentication() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { + public Builder setAuthentication(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6651,19 +5683,15 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -6674,25 +5702,18 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - public Builder mergeAuthentication( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { + public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder( - authentication_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -6704,15 +5725,12 @@ public Builder mergeAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { @@ -6726,67 +5744,51 @@ public Builder clearAuthentication() { return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder - getAuthenticationBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder getAuthenticationBuilder() { + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .getDefaultInstance() - : authentication_; + return authentication_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder>( - getAuthentication(), getParentForChildren(), isClean()); + authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder>( + getAuthentication(), + getParentForChildren(), + isClean()); authentication_ = null; } return authenticationBuilder_; @@ -6794,147 +5796,117 @@ public Builder clearAuthentication() { private int userAgent_ = 0; /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @param value The enum numeric value on the wire for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentValue(int value) { - + userAgent_ = value; onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED : result; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent value) { + public Builder setUserAgent(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent value) { if (value == null) { throw new NullPointerException(); } - + userAgent_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBlacklistPatternsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_.getUnmodifiableView(); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -6942,95 +5914,85 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index to set the value at. * @param value The blacklistPatterns to set. * @return This builder for chaining. */ - public Builder setBlacklistPatterns(int index, java.lang.String value) { + public Builder setBlacklistPatterns( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatterns(java.lang.String value) { + public Builder addBlacklistPatterns( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param values The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addAllBlacklistPatterns(java.lang.Iterable values) { + public Builder addAllBlacklistPatterns( + java.lang.Iterable values) { ensureBlacklistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blacklistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blacklistPatterns_); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return This builder for chaining. */ public Builder clearBlacklistPatterns() { @@ -7040,23 +6002,21 @@ public Builder clearBlacklistPatterns() { return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { + public Builder addBlacklistPatternsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); @@ -7065,55 +6025,41 @@ public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> - scheduleBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> scheduleBuilder_; /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public Builder setSchedule( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { + public Builder setSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7127,8 +6073,6 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7147,22 +6091,17 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public Builder mergeSchedule( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { + public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder(schedule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); } else { schedule_ = value; } @@ -7174,8 +6113,6 @@ public Builder mergeSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7194,42 +6131,33 @@ public Builder clearSchedule() { return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder - getScheduleBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder getScheduleBuilder() { + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7237,24 +6165,21 @@ public Builder clearSchedule() { * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder>( - getSchedule(), getParentForChildren(), isClean()); + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); schedule_ = null; } return scheduleBuilder_; } - private java.util.List targetPlatforms_ = java.util.Collections.emptyList(); - + private java.util.List targetPlatforms_ = + java.util.Collections.emptyList(); private void ensureTargetPlatformsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -7262,73 +6187,50 @@ private void ensureTargetPlatformsIsMutable() { } } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ - public java.util.List - getTargetPlatformsList() { + public java.util.List getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>( - targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms(int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index to set the value at. * @param value The targetPlatforms to set. * @return This builder for chaining. @@ -7344,22 +6246,16 @@ public Builder setTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param value The targetPlatforms to add. * @return This builder for chaining. */ - public Builder addTargetPlatforms( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform value) { + public Builder addTargetPlatforms(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform value) { if (value == null) { throw new NullPointerException(); } @@ -7369,24 +6265,17 @@ public Builder addTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param values The targetPlatforms to add. * @return This builder for chaining. */ public Builder addAllTargetPlatforms( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform> - values) { + java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform value : values) { targetPlatforms_.add(value.getNumber()); @@ -7395,17 +6284,12 @@ public Builder addAllTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return This builder for chaining. */ public Builder clearTargetPlatforms() { @@ -7415,34 +6299,25 @@ public Builder clearTargetPlatforms() { return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - public java.util.List getTargetPlatformsValueList() { + public java.util.List + getTargetPlatformsValueList() { return java.util.Collections.unmodifiableList(targetPlatforms_); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -7450,39 +6325,30 @@ public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index to set the value at. * @param value The enum numeric value on the wire for targetPlatforms to set. * @return This builder for chaining. */ - public Builder setTargetPlatformsValue(int index, int value) { + public Builder setTargetPlatformsValue( + int index, int value) { ensureTargetPlatformsIsMutable(); targetPlatforms_.set(index, value); onChanged(); return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param value The enum numeric value on the wire for targetPlatforms to add. * @return This builder for chaining. */ @@ -7493,21 +6359,17 @@ public Builder addTargetPlatformsValue(int value) { return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param values The enum numeric values on the wire for targetPlatforms to add. * @return This builder for chaining. */ - public Builder addAllTargetPlatformsValue(java.lang.Iterable values) { + public Builder addAllTargetPlatformsValue( + java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (int value : values) { targetPlatforms_.add(value); @@ -7518,47 +6380,34 @@ public Builder addAllTargetPlatformsValue(java.lang.Iterable private com.google.cloud.websecurityscanner.v1alpha.ScanRun latestRun_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> - latestRunBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> latestRunBuilder_; /** - * - * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ public boolean hasLatestRun() { return latestRunBuilder_ != null || latestRun_ != null; } /** - * - * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return The latestRun. */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun() { if (latestRunBuilder_ == null) { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; } else { return latestRunBuilder_.getMessage(); } } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7579,8 +6428,6 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRun return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7599,8 +6446,6 @@ public Builder setLatestRun( return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7611,9 +6456,7 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRu if (latestRunBuilder_ == null) { if (latestRun_ != null) { latestRun_ = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder(latestRun_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder(latestRun_).mergeFrom(value).buildPartial(); } else { latestRun_ = value; } @@ -7625,8 +6468,6 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRu return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7645,8 +6486,6 @@ public Builder clearLatestRun() { return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7654,13 +6493,11 @@ public Builder clearLatestRun() { * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getLatestRunBuilder() { - + onChanged(); return getLatestRunFieldBuilder().getBuilder(); } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7671,14 +6508,11 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRun if (latestRunBuilder_ != null) { return latestRunBuilder_.getMessageOrBuilder(); } else { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; } } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7686,24 +6520,21 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRun * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> getLatestRunFieldBuilder() { if (latestRunBuilder_ == null) { - latestRunBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( - getLatestRun(), getParentForChildren(), isClean()); + latestRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( + getLatestRun(), + getParentForChildren(), + isClean()); latestRun_ = null; } return latestRunBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7713,12 +6544,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig) private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig(); } @@ -7727,16 +6558,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7751,4 +6582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java similarity index 78% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java index a2e125d7..656e3268 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/scan_config.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ScanConfigOrBuilder - extends +public interface ScanConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -33,13 +15,10 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -47,39 +26,32 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -88,211 +60,164 @@ public interface ScanConfigOrBuilder
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ int getMaxQps(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - java.util.List getStartingUrlsList(); + java.util.List + getStartingUrlsList(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ int getStartingUrlsCount(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ java.lang.String getStartingUrls(int index); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - com.google.protobuf.ByteString getStartingUrlsBytes(int index); + com.google.protobuf.ByteString + getStartingUrlsBytes(int index); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return The authentication. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ int getUserAgentValue(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - java.util.List getBlacklistPatternsList(); + java.util.List + getBlacklistPatternsList(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ int getBlacklistPatternsCount(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ java.lang.String getBlacklistPatterns(int index); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - com.google.protobuf.ByteString getBlacklistPatternsBytes(int index); + com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -302,112 +227,78 @@ public interface ScanConfigOrBuilder com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ - java.util.List - getTargetPlatformsList(); + java.util.List getTargetPlatformsList(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ int getTargetPlatformsCount(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms( - int index); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms(int index); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - java.util.List getTargetPlatformsValueList(); + java.util.List + getTargetPlatformsValueList(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ int getTargetPlatformsValue(int index); /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ boolean hasLatestRun(); /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return The latestRun. */ com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun(); /** - * - * *
    * Latest ScanRun if available.
    * 
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java new file mode 100644 index 00000000..e97939cb --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java @@ -0,0 +1,147 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/scan_config.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class ScanConfigProto { + private ScanConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/websecurityscanner/v1alph" + + "a/scan_config.proto\022\'google.cloud.websec" + + "urityscanner.v1alpha\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\0326google/cloud/websecurityscanner/v1alph" + + "a/scan_run.proto\032\037google/protobuf/timest" + + "amp.proto\"\261\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031" + + "\n\014display_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001" + + "(\005\022\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Z\n\016authen" + + "tication\030\005 \001(\0132B.google.cloud.websecurit" + + "yscanner.v1alpha.ScanConfig.Authenticati" + + "on\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud.we" + + "bsecurityscanner.v1alpha.ScanConfig.User" + + "Agent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010sch" + + "edule\030\010 \001(\0132<.google.cloud.websecuritysc" + + "anner.v1alpha.ScanConfig.Schedule\022\\\n\020tar" + + "get_platforms\030\t \003(\0162B.google.cloud.webse" + + "curityscanner.v1alpha.ScanConfig.TargetP" + + "latform\022D\n\nlatest_run\030\013 \001(\01320.google.clo" + + "ud.websecurityscanner.v1alpha.ScanRun\032\226\003" + + "\n\016Authentication\022j\n\016google_account\030\001 \001(\013" + + "2P.google.cloud.websecurityscanner.v1alp" + + "ha.ScanConfig.Authentication.GoogleAccou" + + "ntH\000\022j\n\016custom_account\030\002 \001(\0132P.google.cl" + + "oud.websecurityscanner.v1alpha.ScanConfi" + + "g.Authentication.CustomAccountH\000\032@\n\rGoog" + + "leAccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010pass" + + "word\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010u" + + "sername\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A" + + "\002\340A\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenti" + + "cation\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022#\n\026interva" + + "l_duration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022" + + "\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LI" + + "NUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHO" + + "NE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFOR" + + "M_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPU" + + "TE\020\002:_\352A\\\n,websecurityscanner.googleapis" + + ".com/ScanConfig\022,projects/{project}/scan" + + "Configs/{scan_config}B\233\001\n+com.google.clo" + + "ud.websecurityscanner.v1alphaB\017ScanConfi" + + "gProtoP\001ZYgoogle.golang.org/genproto/goo" + + "gleapis/cloud/websecurityscanner/v1alpha" + + ";websecurityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "MaxQps", "StartingUrls", "Authentication", "UserAgent", "BlacklistPatterns", "Schedule", "TargetPlatforms", "LatestRun", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor, + new java.lang.String[] { "GoogleAccount", "CustomAccount", "Authentication", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor, + new java.lang.String[] { "Username", "Password", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor, + new java.lang.String[] { "Username", "Password", "LoginUrl", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor, + new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java similarity index 74% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java index 55bf5a93..677a5a03 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/scan_run.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A ScanRun is a output-only resource representing an actual run of the scan.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanRun} */ -public final class ScanRun extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScanRun extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanRun) ScanRunOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScanRun.newBuilder() to construct. private ScanRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScanRun() { name_ = ""; executionState_ = 0; @@ -45,15 +27,16 @@ private ScanRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScanRun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ScanRun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,84 +55,77 @@ private ScanRun( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - executionState_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + executionState_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - resultState_ = rawValue; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - urlsCrawledCount_ = input.readInt64(); - break; + resultState_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 56: - { - urlsTestedCount_ = input.readInt64(); - break; + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - case 64: - { - hasVulnerabilities_ = input.readBool(); - break; + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 72: - { - progressPercent_ = input.readInt32(); - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 48: { + + urlsCrawledCount_ = input.readInt64(); + break; + } + case 56: { + + urlsTestedCount_ = input.readInt64(); + break; + } + case 64: { + + hasVulnerabilities_ = input.readBool(); + break; + } + case 72: { + + progressPercent_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -157,41 +133,36 @@ private ScanRun( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); } /** - * - * *
    * Types of ScanRun execution state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState} */ - public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -201,8 +172,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -211,8 +180,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * The scan is in progress.
      * 
@@ -221,8 +188,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING(2), /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -234,8 +199,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -245,8 +208,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -255,8 +216,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * The scan is in progress.
      * 
@@ -265,8 +224,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCANNING_VALUE = 2; /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -275,6 +232,7 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINISHED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -299,53 +257,50 @@ public static ExecutionState valueOf(int value) { */ public static ExecutionState forNumber(int value) { switch (value) { - case 0: - return EXECUTION_STATE_UNSPECIFIED; - case 1: - return QUEUED; - case 2: - return SCANNING; - case 3: - return FINISHED; - default: - return null; + case 0: return EXECUTION_STATE_UNSPECIFIED; + case 1: return QUEUED; + case 2: return SCANNING; + case 3: return FINISHED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor().getEnumTypes().get(0); } private static final ExecutionState[] VALUES = values(); - public static ExecutionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -363,18 +318,15 @@ private ExecutionState(int value) { } /** - * - * *
    * Types of ScanRun result state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState} */ - public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { + public enum ResultState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -384,8 +336,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -394,8 +344,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESS(1), /** - * - * *
      * The scan finished with errors.
      * 
@@ -404,8 +352,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(2), /** - * - * *
      * The scan was terminated by user.
      * 
@@ -417,8 +363,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -428,8 +372,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -438,8 +380,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESS_VALUE = 1; /** - * - * *
      * The scan finished with errors.
      * 
@@ -448,8 +388,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; /** - * - * *
      * The scan was terminated by user.
      * 
@@ -458,6 +396,7 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KILLED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -482,53 +421,50 @@ public static ResultState valueOf(int value) { */ public static ResultState forNumber(int value) { switch (value) { - case 0: - return RESULT_STATE_UNSPECIFIED; - case 1: - return SUCCESS; - case 2: - return ERROR; - case 3: - return KILLED; - default: - return null; + case 0: return RESULT_STATE_UNSPECIFIED; + case 1: return SUCCESS; + case 2: return ERROR; + case 3: return KILLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResultState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultState findValueByNumber(int number) { + return ResultState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultState findValueByNumber(int number) { - return ResultState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor().getEnumTypes().get(1); } private static final ResultState[] VALUES = values(); - public static ResultState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -548,8 +484,6 @@ private ResultState(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -557,7 +491,6 @@ private ResultState(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -566,15 +499,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -582,15 +514,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -601,94 +534,67 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; private int executionState_; /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED : result; } public static final int RESULT_STATE_FIELD_NUMBER = 3; private int resultState_; /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -696,14 +602,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ @java.lang.Override @@ -711,8 +614,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -727,15 +628,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -743,15 +641,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -759,8 +654,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -776,15 +669,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_;
   /**
-   *
-   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -795,8 +685,6 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_; /** - * - * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -805,7 +693,6 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -816,14 +703,11 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_; /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -834,8 +718,6 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_; /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -844,7 +726,6 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -853,7 +734,6 @@ public int getProgressPercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -865,19 +745,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState - .EXECUTION_STATE_UNSPECIFIED - .getNumber()) { + if (executionState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { + if (resultState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, resultState_); } if (startTime_ != null) { @@ -910,34 +786,37 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState - .EXECUTION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, executionState_); + if (executionState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultState_); + if (resultState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resultState_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndTime()); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, urlsTestedCount_); } if (hasVulnerabilities_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hasVulnerabilities_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, hasVulnerabilities_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, progressPercent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -947,29 +826,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanRun)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanRun other = - (com.google.cloud.websecurityscanner.v1alpha.ScanRun) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanRun other = (com.google.cloud.websecurityscanner.v1alpha.ScanRun) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; - if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (getUrlsCrawledCount() + != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() + != other.getUrlsTestedCount()) return false; + if (getHasVulnerabilities() + != other.getHasVulnerabilities()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -996,11 +881,14 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsTestedCount()); hash = (37 * hash) + HAS_VULNERABILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1009,126 +897,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanRun is a output-only resource representing an actual run of the scan.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanRun} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanRun) com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder() @@ -1136,15 +1015,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1178,9 +1058,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; } @java.lang.Override @@ -1199,8 +1079,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun result = - new com.google.cloud.websecurityscanner.v1alpha.ScanRun(this); + com.google.cloud.websecurityscanner.v1alpha.ScanRun result = new com.google.cloud.websecurityscanner.v1alpha.ScanRun(this); result.name_ = name_; result.executionState_ = executionState_; result.resultState_ = resultState_; @@ -1226,39 +1105,38 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanRun) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanRun) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanRun)other); } else { super.mergeFrom(other); return this; @@ -1266,8 +1144,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanRun other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1315,8 +1192,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanRun) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanRun) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1328,8 +1204,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1337,13 +1211,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1352,8 +1226,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1361,14 +1233,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1376,8 +1249,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1385,22 +1256,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1408,18 +1277,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1427,16 +1293,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1444,99 +1310,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int executionState_ = 0; /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf( - executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED : result; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState value) { + public Builder setExecutionState(com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1544,98 +1384,78 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED : result; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState value) { + public Builder setResultState(com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; @@ -1643,33 +1463,24 @@ public Builder clearResultState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1680,8 +1491,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1702,15 +1511,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1721,8 +1529,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1733,7 +1539,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1745,8 +1551,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1765,8 +1569,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1774,13 +1576,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1791,12 +1591,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1804,17 +1603,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1822,35 +1618,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1861,8 +1648,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1884,8 +1669,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1893,7 +1676,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1904,8 +1688,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1917,7 +1699,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1929,8 +1711,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1950,8 +1730,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1960,13 +1738,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1978,12 +1754,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1992,33 +1767,27 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
 
-    private long urlsCrawledCount_;
+    private long urlsCrawledCount_ ;
     /**
-     *
-     *
      * 
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -2026,47 +1795,39 @@ public long getUrlsCrawledCount() { return urlsCrawledCount_; } /** - * - * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_; + private long urlsTestedCount_ ; /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2075,7 +1836,6 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -2083,8 +1843,6 @@ public long getUrlsTestedCount() { return urlsTestedCount_; } /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2093,19 +1851,16 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2114,26 +1869,22 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasVulnerabilities_; + private boolean hasVulnerabilities_ ; /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -2141,45 +1892,37 @@ public boolean getHasVulnerabilities() { return hasVulnerabilities_; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @param value The hasVulnerabilities to set. * @return This builder for chaining. */ public Builder setHasVulnerabilities(boolean value) { - + hasVulnerabilities_ = value; onChanged(); return this; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { - + hasVulnerabilities_ = false; onChanged(); return this; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2188,7 +1931,6 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -2196,8 +1938,6 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2206,19 +1946,16 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2227,18 +1964,17 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2248,12 +1984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanRun) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanRun) private static final com.google.cloud.websecurityscanner.v1alpha.ScanRun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanRun(); } @@ -2262,16 +1998,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.ScanRun getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2286,4 +2022,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java similarity index 83% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java index 1e3dc0be..cb8b3862 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/scan_run.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ScanRunOrBuilder - extends +public interface ScanRunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanRun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -33,13 +15,10 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -47,92 +26,70 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState(); /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState(); /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -142,34 +99,26 @@ public interface ScanRunOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -180,22 +129,17 @@ public interface ScanRunOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** - * - * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -204,27 +148,21 @@ public interface ScanRunOrBuilder
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ boolean getHasVulnerabilities(); /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -233,7 +171,6 @@ public interface ScanRunOrBuilder
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ int getProgressPercent(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java new file mode 100644 index 00000000..9758b50b --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/scan_run.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class ScanRunProto { + private ScanRunProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/websecurityscanner/v1alph" + + "a/scan_run.proto\022\'google.cloud.websecuri" + + "tyscanner.v1alpha\032\031google/api/resource.p" + + "roto\032\037google/protobuf/timestamp.proto\"\257\005" + + "\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022X\n\017execution_sta" + + "te\030\002 \001(\0162?.google.cloud.websecurityscann" + + "er.v1alpha.ScanRun.ExecutionState\022R\n\014res" + + "ult_state\030\003 \001(\0162<.google.cloud.websecuri" + + "tyscanner.v1alpha.ScanRun.ResultState\022.\n" + + "\nstart_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobu" + + "f.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003\022" + + "\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulner" + + "abilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001(" + + "\005\"Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_U" + + "NSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014" + + "\n\010FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020" + + "\002\022\n\n\006KILLED\020\003:p\352Am\n)websecurityscanner.g" + + "oogleapis.com/ScanRun\022@projects/{project" + + "}/scanConfigs/{scan_config}/scanRuns/{sc" + + "an_run}B\230\001\n+com.google.cloud.websecurity" + + "scanner.v1alphaB\014ScanRunProtoP\001ZYgoogle." + + "golang.org/genproto/googleapis/cloud/web" + + "securityscanner/v1alpha;websecurityscann" + + "erb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor, + new java.lang.String[] { "Name", "ExecutionState", "ResultState", "StartTime", "EndTime", "UrlsCrawledCount", "UrlsTestedCount", "HasVulnerabilities", "ProgressPercent", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java index f17df141..a9073ed9 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `StartScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StartScanRunRequest} */ -public final class StartScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) StartScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartScanRunRequest.newBuilder() to construct. private StartScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StartScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private StartScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other = - (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other = (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StartScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StartScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result = - new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(this); + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java new file mode 100644 index 00000000..c678b425 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface StartScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java similarity index 65% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java index cb679cb0..d9fff68e 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `StopScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StopScanRunRequest} */ -public final class StopScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) StopScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopScanRunRequest.newBuilder() to construct. private StopScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StopScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private StopScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest other = - (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest other = (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StopScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StopScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result = - new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(this); + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,32 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,8 +601,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java new file mode 100644 index 00000000..20f3af5a --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface StopScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java index 72451e53..37c9d54c 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java @@ -1,55 +1,39 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `UpdateScanConfigRequest` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest} */ -public final class UpdateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) UpdateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateScanConfigRequest.newBuilder() to construct. private UpdateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateScanConfigRequest() {} + private UpdateScanConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateScanConfigRequest( case 0: done = true; break; - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,43 +92,36 @@ private UpdateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); } public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -158,38 +129,27 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -199,17 +159,13 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -217,17 +173,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -235,16 +187,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -252,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scanConfig_ != null) { output.writeMessage(2, getScanConfig()); } @@ -281,10 +230,12 @@ public int getSerializedSize() { size = 0; if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,21 +245,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) obj; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -335,145 +287,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `UpdateScanConfigRequest` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,16 +434,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -516,8 +455,7 @@ public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(this); if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; } else { @@ -536,51 +474,46 @@ public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.getDefaultInstance()) return this; if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } @@ -606,9 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,64 +551,45 @@ public Builder mergeFrom( private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -693,17 +605,13 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanCon return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder builderForValue) { @@ -717,25 +625,19 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -747,17 +649,13 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanC return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -771,71 +669,54 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder - getScanConfigOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; @@ -843,61 +724,45 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -913,18 +778,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -935,22 +798,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -962,16 +822,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -985,74 +842,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1062,32 +906,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1099,8 +941,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java index 14c1862b..35cda492 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java @@ -1,116 +1,75 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface UpdateScanConfigRequestOrBuilder - extends +public interface UpdateScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java index c87d214c..b2dd828b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information regarding any resource causing the vulnerability such
  * as JavaScript sources, image, audio files, etc.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ViolatingResource}
  */
-public final class ViolatingResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ViolatingResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ViolatingResource)
     ViolatingResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ViolatingResource.newBuilder() to construct.
   private ViolatingResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ViolatingResource() {
     contentType_ = "";
     resourceUrl_ = "";
@@ -45,15 +27,16 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ViolatingResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private ViolatingResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              contentType_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            contentType_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceUrl_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            resourceUrl_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +81,34 @@ private ViolatingResource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class,
-            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
   }
 
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object contentType_;
   /**
-   *
-   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ @java.lang.Override @@ -141,29 +117,29 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -174,14 +150,11 @@ public com.google.protobuf.ByteString getContentTypeBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object resourceUrl_; /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ @java.lang.Override @@ -190,29 +163,29 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -221,7 +194,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -263,16 +236,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ViolatingResource)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource other = - (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) obj; + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource other = (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) obj; - if (!getContentType().equals(other.getContentType())) return false; - if (!getResourceUrl().equals(other.getResourceUrl())) return false; + if (!getContentType() + .equals(other.getContentType())) return false; + if (!getResourceUrl() + .equals(other.getResourceUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +268,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information regarding any resource causing the vulnerability such
    * as JavaScript sources, image, audio files, etc.
@@ -399,23 +365,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ViolatingResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ViolatingResource)
       com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class,
-              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder()
@@ -423,15 +387,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -443,14 +408,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance();
     }
 
@@ -465,8 +429,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result =
-          new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(this);
+      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result = new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(this);
       result.contentType_ = contentType_;
       result.resourceUrl_ = resourceUrl_;
       onBuilt();
@@ -477,39 +440,38 @@ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource buildPartia
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ViolatingResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,9 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance()) return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -547,9 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -561,20 +519,18 @@ public Builder mergeFrom(
 
     private java.lang.Object contentType_ = "";
     /**
-     *
-     *
      * 
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; @@ -583,21 +539,20 @@ public java.lang.String getContentType() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -605,61 +560,54 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType(java.lang.String value) { + public Builder setContentType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -667,20 +615,18 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -689,21 +635,20 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -711,68 +656,61 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -782,13 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ViolatingResource) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ViolatingResource) - private static final com.google.cloud.websecurityscanner.v1alpha.ViolatingResource - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ViolatingResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(); } @@ -797,16 +734,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViolatingResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolatingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ViolatingResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -821,4 +758,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java index 260c1f96..dbd8b138 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ViolatingResourceOrBuilder - extends +public interface ViolatingResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ViolatingResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ java.lang.String getContentType(); /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - com.google.protobuf.ByteString getContentTypeBytes(); + com.google.protobuf.ByteString + getContentTypeBytes(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java index 8544d3d4..d9b14433 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information about vulnerable or missing HTTP Headers.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders} */ -public final class VulnerableHeaders extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableHeaders extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) VulnerableHeadersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableHeaders.newBuilder() to construct. private VulnerableHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableHeaders() { headers_ = java.util.Collections.emptyList(); missingHeaders_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableHeaders(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableHeaders( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,41 +55,31 @@ private VulnerableHeaders( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000002; - } - missingHeaders_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + headers_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingHeaders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + missingHeaders_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,7 +87,8 @@ private VulnerableHeaders( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -126,96 +100,79 @@ private VulnerableHeaders( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); } - public interface HeaderOrBuilder - extends + public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * Describes a HTTP Header.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header} */ - public static final class Header extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Header extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Header() { name_ = ""; value_ = ""; @@ -223,15 +180,16 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -250,27 +208,25 @@ private Header( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -278,39 +234,34 @@ private Header( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -319,29 +270,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -352,14 +303,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -368,29 +316,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -399,7 +347,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,7 +358,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -441,16 +389,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) obj; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,95 +421,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -570,49 +511,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes a HTTP Header.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -624,22 +560,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header build() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = - buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -648,8 +581,7 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header buil @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = - new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(this); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -660,53 +592,46 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -734,9 +659,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -748,20 +671,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -770,21 +691,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -792,61 +712,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -854,20 +767,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -876,21 +787,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -898,66 +808,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -970,32 +872,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) - private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -1007,177 +907,133 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HEADERS_FIELD_NUMBER = 1; - private java.util.List - headers_; + private java.util.List headers_; /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getHeadersOrBuilderList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders(int index) { return headers_.get(index); } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { return headers_.get(index); } public static final int MISSING_HEADERS_FIELD_NUMBER = 2; - private java.util.List - missingHeaders_; + private java.util.List missingHeaders_; /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getMissingHeadersOrBuilderList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override public int getMissingHeadersCount() { return missingHeaders_.size(); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders(int index) { return missingHeaders_.get(index); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { return missingHeaders_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1189,7 +1045,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } @@ -1206,10 +1063,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, headers_.get(i)); } for (int i = 0; i < missingHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, missingHeaders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1219,16 +1078,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders other = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) obj; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders other = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) obj; - if (!getHeadersList().equals(other.getHeadersList())) return false; - if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; + if (!getHeadersList() + .equals(other.getHeadersList())) return false; + if (!getMissingHeadersList() + .equals(other.getMissingHeadersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1254,127 +1114,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable or missing HTTP Headers.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder() @@ -1382,18 +1232,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHeadersFieldBuilder(); getMissingHeadersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1413,14 +1263,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance(); } @@ -1435,8 +1284,7 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result = - new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders(this); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1464,39 +1312,38 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders)other); } else { super.mergeFrom(other); return this; @@ -1504,9 +1351,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance()) return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { @@ -1525,10 +1370,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableH headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHeadersFieldBuilder() - : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -1552,10 +1396,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableH missingHeadersBuilder_ = null; missingHeaders_ = other.missingHeaders_; bitField0_ = (bitField0_ & ~0x00000002); - missingHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMissingHeadersFieldBuilder() - : null; + missingHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMissingHeadersFieldBuilder() : null; } else { missingHeadersBuilder_.addAllMessages(other.missingHeaders_); } @@ -1580,9 +1423,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1591,39 +1432,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - headers_ = java.util.Collections.emptyList(); - + private java.util.List headers_ = + java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(headers_); + headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> - headersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> headersBuilder_; /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { @@ -1631,14 +1461,11 @@ private void ensureHeadersIsMutable() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public int getHeadersCount() { if (headersBuilder_ == null) { @@ -1648,17 +1475,13 @@ public int getHeadersCount() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders(int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { @@ -1666,14 +1489,11 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getH } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -1690,19 +1510,14 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( - int index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); @@ -1713,17 +1528,13 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public Builder addHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { + public Builder addHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1737,14 +1548,11 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -1761,18 +1569,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1783,19 +1587,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - int index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); @@ -1806,22 +1605,18 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder addAllHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1829,14 +1624,11 @@ public Builder addAllHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder clearHeaders() { if (headersBuilder_ == null) { @@ -1849,14 +1641,11 @@ public Builder clearHeaders() { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { @@ -1869,50 +1658,39 @@ public Builder removeHeaders(int index) { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - getHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder getHeadersBuilder( + int index) { return getHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { if (headersBuilder_ == null) { - return headers_.get(index); - } else { + return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1920,105 +1698,74 @@ public Builder removeHeaders(int index) { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - addHeadersBuilder() { - return getHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addHeadersBuilder() { + return getHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - addHeadersBuilder(int index) { - return getHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addHeadersBuilder( + int index) { + return getHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder> - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( - headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( + headers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); headers_ = null; } return headersBuilder_; } - private java.util.List - missingHeaders_ = java.util.Collections.emptyList(); - + private java.util.List missingHeaders_ = + java.util.Collections.emptyList(); private void ensureMissingHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>( - missingHeaders_); + missingHeaders_ = new java.util.ArrayList(missingHeaders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> - missingHeadersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> missingHeadersBuilder_; /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { if (missingHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(missingHeaders_); } else { @@ -2026,15 +1773,11 @@ private void ensureMissingHeadersIsMutable() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public int getMissingHeadersCount() { if (missingHeadersBuilder_ == null) { @@ -2044,18 +1787,13 @@ public int getMissingHeadersCount() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { return missingHeaders_.get(index); } else { @@ -2063,15 +1801,11 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getM } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -2088,20 +1822,14 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.set(index, builderForValue.build()); @@ -2112,18 +1840,13 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { + public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { if (missingHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2137,15 +1860,11 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -2162,19 +1881,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(builderForValue.build()); @@ -2185,20 +1899,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(index, builderForValue.build()); @@ -2209,23 +1917,18 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder addAllMissingHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingHeaders_); onChanged(); } else { missingHeadersBuilder_.addAllMessages(values); @@ -2233,15 +1936,11 @@ public Builder addAllMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder clearMissingHeaders() { if (missingHeadersBuilder_ == null) { @@ -2254,15 +1953,11 @@ public Builder clearMissingHeaders() { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder removeMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { @@ -2275,53 +1970,39 @@ public Builder removeMissingHeaders(int index) { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - getMissingHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder getMissingHeadersBuilder( + int index) { return getMissingHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { if (missingHeadersBuilder_ == null) { - return missingHeaders_.get(index); - } else { + return missingHeaders_.get(index); } else { return missingHeadersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> - getMissingHeadersOrBuilderList() { + public java.util.List + getMissingHeadersOrBuilderList() { if (missingHeadersBuilder_ != null) { return missingHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -2329,70 +2010,45 @@ public Builder removeMissingHeaders(int index) { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder() { - return getMissingHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addMissingHeadersBuilder() { + return getMissingHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder(int index) { - return getMissingHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addMissingHeadersBuilder( + int index) { + return getMissingHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder> - getMissingHeadersBuilderList() { + public java.util.List + getMissingHeadersBuilderList() { return getMissingHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersFieldBuilder() { if (missingHeadersBuilder_ == null) { - missingHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( + missingHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( missingHeaders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2401,9 +2057,9 @@ public Builder removeMissingHeaders(int index) { } return missingHeadersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2413,13 +2069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) - private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders(); } @@ -2428,16 +2083,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableHeaders parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableHeaders(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2452,4 +2107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java similarity index 51% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java index e78696c1..842572d1 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java @@ -1,150 +1,97 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface VulnerableHeadersOrBuilder - extends +public interface VulnerableHeadersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - java.util.List + java.util.List getHeadersList(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders(int index); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ int getHeadersCount(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + java.util.List getHeadersOrBuilderList(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List + java.util.List getMissingHeadersList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders(int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ int getMissingHeadersCount(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + java.util.List getMissingHeadersOrBuilderList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java index 1cbcd0ba..6802d7f8 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information about vulnerable request parameters.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableParameters} */ -public final class VulnerableParameters extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableParameters extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) VulnerableParametersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableParameters.newBuilder() to construct. private VulnerableParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableParameters() { parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private VulnerableParameters( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameterNames_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parameterNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private VulnerableParameters( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -104,61 +87,50 @@ private VulnerableParameters( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); } public static final int PARAMETER_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList parameterNames_; /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_; } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -166,23 +138,20 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } @@ -223,15 +193,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) obj; + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other = (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) obj; - if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; + if (!getParameterNamesList() + .equals(other.getParameterNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,127 +223,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable request parameters.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableParameters} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder() @@ -381,15 +341,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -399,14 +360,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance(); } @@ -421,8 +381,7 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result = - new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(this); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -437,50 +396,46 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance()) return this; if (!other.parameterNames_.isEmpty()) { if (parameterNames_.isEmpty()) { parameterNames_ = other.parameterNames_; @@ -510,9 +465,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,55 +474,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList parameterNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureParameterNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_.getUnmodifiableView(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -577,90 +519,80 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index to set the value at. * @param value The parameterNames to set. * @return This builder for chaining. */ - public Builder setParameterNames(int index, java.lang.String value) { + public Builder setParameterNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNames(java.lang.String value) { + public Builder addParameterNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param values The parameterNames to add. * @return This builder for chaining. */ - public Builder addAllParameterNames(java.lang.Iterable values) { + public Builder addAllParameterNames( + java.lang.Iterable values) { ensureParameterNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameterNames_); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return This builder for chaining. */ public Builder clearParameterNames() { @@ -670,30 +602,28 @@ public Builder clearParameterNames() { return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The bytes of the parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { + public Builder addParameterNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -703,32 +633,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) - private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,8 +668,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java index de2eb8e5..c75e054f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java @@ -1,76 +1,50 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface VulnerableParametersOrBuilder - extends +public interface VulnerableParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - java.util.List getParameterNamesList(); + java.util.List + getParameterNamesList(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ int getParameterNamesCount(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ java.lang.String getParameterNames(int index); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - com.google.protobuf.ByteString getParameterNamesBytes(int index); + com.google.protobuf.ByteString + getParameterNamesBytes(int index); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java new file mode 100644 index 00000000..f6590b7c --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java @@ -0,0 +1,408 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class WebSecurityScannerProto { + private WebSecurityScannerProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/websecurityscanner/v1alph" + + "a/web_security_scanner.proto\022\'google.clo" + + "ud.websecurityscanner.v1alpha\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\0329google/cloud/w" + + "ebsecurityscanner/v1alpha/crawled_url.pr" + + "oto\0325google/cloud/websecurityscanner/v1a" + + "lpha/finding.proto\032@google/cloud/websecu" + + "rityscanner/v1alpha/finding_type_stats.p" + + "roto\0329google/cloud/websecurityscanner/v1" + + "alpha/scan_config.proto\0326google/cloud/we" + + "bsecurityscanner/v1alpha/scan_run.proto\032" + + "\033google/protobuf/empty.proto\032 google/pro" + + "tobuf/field_mask.proto\"\255\001\n\027CreateScanCon" + + "figRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clou" + + "dresourcemanager.googleapis.com/Project\022" + + "M\n\013scan_config\030\002 \001(\01323.google.cloud.webs" + + "ecurityscanner.v1alpha.ScanConfigB\003\340A\002\"]" + + "\n\027DeleteScanConfigRequest\022B\n\004name\030\001 \001(\tB" + + "4\340A\002\372A.\n,websecurityscanner.googleapis.c" + + "om/ScanConfig\"Z\n\024GetScanConfigRequest\022B\n" + + "\004name\030\001 \001(\tB4\340A\002\372A.\n,websecurityscanner." + + "googleapis.com/ScanConfig\"\204\001\n\026ListScanCo" + + "nfigsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cl" + + "oudresourcemanager.googleapis.com/Projec" + + "t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\"\236\001\n\027UpdateScanConfigRequest\022M\n\013scan_con" + + "fig\030\002 \001(\01323.google.cloud.websecurityscan" + + "ner.v1alpha.ScanConfigB\003\340A\002\0224\n\013update_ma" + + "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\"}\n\027ListScanConfigsResponse\022I\n\014scan_con" + + "figs\030\001 \003(\01323.google.cloud.websecuritysca" + + "nner.v1alpha.ScanConfig\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"Y\n\023StartScanRunRequest\022B\n\004name\030" + + "\001 \001(\tB4\340A\002\372A.\n,websecurityscanner.google" + + "apis.com/ScanConfig\"T\n\021GetScanRunRequest" + + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecurityscann" + + "er.googleapis.com/ScanRun\"\202\001\n\023ListScanRu" + + "nsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,webse" + + "curityscanner.googleapis.com/ScanConfig\022" + + "\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"t" + + "\n\024ListScanRunsResponse\022C\n\tscan_runs\030\001 \003(" + + "\01320.google.cloud.websecurityscanner.v1al" + + "pha.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022" + + "StopScanRunRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + + "\n)websecurityscanner.googleapis.com/Scan" + + "Run\"\202\001\n\026ListCrawledUrlsRequest\022A\n\006parent" + + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + + "eapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021\n" + + "\tpage_size\030\003 \001(\005\"}\n\027ListCrawledUrlsRespo" + + "nse\022I\n\014crawled_urls\030\001 \003(\01323.google.cloud" + + ".websecurityscanner.v1alpha.CrawledUrl\022\027" + + "\n\017next_page_token\030\002 \001(\t\"T\n\021GetFindingReq" + + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuritys" + + "canner.googleapis.com/Finding\"\224\001\n\023ListFi" + + "ndingsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)w" + + "ebsecurityscanner.googleapis.com/ScanRun" + + "\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(" + + "\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024ListFindingsResp" + + "onse\022B\n\010findings\030\001 \003(\01320.google.cloud.we" + + "bsecurityscanner.v1alpha.Finding\022\027\n\017next" + + "_page_token\030\002 \001(\t\"`\n\033ListFindingTypeStat" + + "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websec" + + "urityscanner.googleapis.com/ScanRun\"u\n\034L" + + "istFindingTypeStatsResponse\022U\n\022finding_t" + + "ype_stats\030\001 \003(\01329.google.cloud.websecuri" + + "tyscanner.v1alpha.FindingTypeStats2\264\026\n\022W" + + "ebSecurityScanner\022\335\001\n\020CreateScanConfig\022@" + + ".google.cloud.websecurityscanner.v1alpha" + + ".CreateScanConfigRequest\0323.google.cloud." + + "websecurityscanner.v1alpha.ScanConfig\"R\202" + + "\323\344\223\0027\"(/v1alpha/{parent=projects/*}/scan" + + "Configs:\013scan_config\332A\022parent,scan_confi" + + "g\022\245\001\n\020DeleteScanConfig\022@.google.cloud.we" + + "bsecurityscanner.v1alpha.DeleteScanConfi" + + "gRequest\032\026.google.protobuf.Empty\"7\202\323\344\223\002*" + + "*(/v1alpha/{name=projects/*/scanConfigs/" + + "*}\332A\004name\022\274\001\n\rGetScanConfig\022=.google.clo" + + "ud.websecurityscanner.v1alpha.GetScanCon" + + "figRequest\0323.google.cloud.websecuritysca" + + "nner.v1alpha.ScanConfig\"7\202\323\344\223\002*\022(/v1alph" + + "a/{name=projects/*/scanConfigs/*}\332A\004name" + + "\022\317\001\n\017ListScanConfigs\022?.google.cloud.webs" + + "ecurityscanner.v1alpha.ListScanConfigsRe" + + "quest\032@.google.cloud.websecurityscanner." + + "v1alpha.ListScanConfigsResponse\"9\202\323\344\223\002*\022" + + "(/v1alpha/{parent=projects/*}/scanConfig" + + "s\332A\006parent\022\356\001\n\020UpdateScanConfig\022@.google" + + ".cloud.websecurityscanner.v1alpha.Update" + + "ScanConfigRequest\0323.google.cloud.websecu" + + "rityscanner.v1alpha.ScanConfig\"c\202\323\344\223\002C24" + + "/v1alpha/{scan_config.name=projects/*/sc" + + "anConfigs/*}:\013scan_config\332A\027scan_config," + + "update_mask\022\300\001\n\014StartScanRun\022<.google.cl" + + "oud.websecurityscanner.v1alpha.StartScan" + + "RunRequest\0320.google.cloud.websecuritysca" + + "nner.v1alpha.ScanRun\"@\202\323\344\223\0023\"./v1alpha/{" + + "name=projects/*/scanConfigs/*}:start:\001*\332" + + "A\004name\022\276\001\n\nGetScanRun\022:.google.cloud.web" + + "securityscanner.v1alpha.GetScanRunReques" + + "t\0320.google.cloud.websecurityscanner.v1al" + + "pha.ScanRun\"B\202\323\344\223\0025\0223/v1alpha/{name=proj" + + "ects/*/scanConfigs/*/scanRuns/*}\332A\004name\022" + + "\321\001\n\014ListScanRuns\022<.google.cloud.websecur" + + "ityscanner.v1alpha.ListScanRunsRequest\032=" + + ".google.cloud.websecurityscanner.v1alpha" + + ".ListScanRunsResponse\"D\202\323\344\223\0025\0223/v1alpha/" + + "{parent=projects/*/scanConfigs/*}/scanRu" + + "ns\332A\006parent\022\310\001\n\013StopScanRun\022;.google.clo" + + "ud.websecurityscanner.v1alpha.StopScanRu" + + "nRequest\0320.google.cloud.websecurityscann" + + "er.v1alpha.ScanRun\"J\202\323\344\223\002=\"8/v1alpha/{na" + + "me=projects/*/scanConfigs/*/scanRuns/*}:" + + "stop:\001*\332A\004name\022\350\001\n\017ListCrawledUrls\022?.goo" + + "gle.cloud.websecurityscanner.v1alpha.Lis" + + "tCrawledUrlsRequest\032@.google.cloud.webse" + + "curityscanner.v1alpha.ListCrawledUrlsRes" + + "ponse\"R\202\323\344\223\002C\022A/v1alpha/{parent=projects" + + "/*/scanConfigs/*/scanRuns/*}/crawledUrls" + + "\332A\006parent\022\311\001\n\nGetFinding\022:.google.cloud." + + "websecurityscanner.v1alpha.GetFindingReq" + + "uest\0320.google.cloud.websecurityscanner.v" + + "1alpha.Finding\"M\202\323\344\223\002@\022>/v1alpha/{name=p" + + "rojects/*/scanConfigs/*/scanRuns/*/findi" + + "ngs/*}\332A\004name\022\343\001\n\014ListFindings\022<.google." + + "cloud.websecurityscanner.v1alpha.ListFin" + + "dingsRequest\032=.google.cloud.websecuritys" + + "canner.v1alpha.ListFindingsResponse\"V\202\323\344" + + "\223\002@\022>/v1alpha/{parent=projects/*/scanCon" + + "figs/*/scanRuns/*}/findings\332A\rparent,fil" + + "ter\022\374\001\n\024ListFindingTypeStats\022D.google.cl" + + "oud.websecurityscanner.v1alpha.ListFindi" + + "ngTypeStatsRequest\032E.google.cloud.websec" + + "urityscanner.v1alpha.ListFindingTypeStat" + + "sResponse\"W\202\323\344\223\002H\022F/v1alpha/{parent=proj" + + "ects/*/scanConfigs/*/scanRuns/*}/finding" + + "TypeStats\332A\006parent\032U\312A!websecurityscanne" + + "r.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\243\001\n+com.google" + + ".cloud.websecurityscanner.v1alphaB\027WebSe" + + "curityScannerProtoP\001ZYgoogle.golang.org/" + + "genproto/googleapis/cloud/websecuritysca" + + "nner/v1alpha;websecurityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor, + new java.lang.String[] { "Parent", "ScanConfig", }); + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor, + new java.lang.String[] { "ScanConfig", "UpdateMask", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor, + new java.lang.String[] { "ScanConfigs", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor, + new java.lang.String[] { "ScanRuns", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor, + new java.lang.String[] { "CrawledUrls", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor, + new java.lang.String[] { "Findings", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor, + new java.lang.String[] { "FindingTypeStats", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java index f8a3b4fc..f2ee849b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information reported for an XSS.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Xss} */ -public final class Xss extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Xss extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.Xss) XssOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Xss.newBuilder() to construct. private Xss(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Xss() { stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; errorMessage_ = ""; @@ -44,15 +26,16 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xss(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Xss( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private Xss( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stackTraces_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackTraces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + stackTraces_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private Xss( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -112,61 +94,50 @@ private Xss( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.Xss.class, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.Xss.class, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); } public static final int STACK_TRACES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList stackTraces_; /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_; } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -174,32 +145,27 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -208,29 +174,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -239,7 +205,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < stackTraces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTraces_.getRaw(i)); } @@ -286,16 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.Xss)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.Xss other = - (com.google.cloud.websecurityscanner.v1alpha.Xss) obj; + com.google.cloud.websecurityscanner.v1alpha.Xss other = (com.google.cloud.websecurityscanner.v1alpha.Xss) obj; - if (!getStackTracesList().equals(other.getStackTracesList())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getStackTracesList() + .equals(other.getStackTracesList())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,127 +285,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.Xss prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an XSS.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Xss} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.Xss) com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.Xss.class, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.Xss.class, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder() @@ -446,15 +404,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; } @java.lang.Override @@ -487,8 +446,7 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Xss buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.Xss result = - new com.google.cloud.websecurityscanner.v1alpha.Xss(this); + com.google.cloud.websecurityscanner.v1alpha.Xss result = new com.google.cloud.websecurityscanner.v1alpha.Xss(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -504,39 +462,38 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.Xss) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Xss) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Xss)other); } else { super.mergeFrom(other); return this; @@ -544,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.Xss other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) return this; if (!other.stackTraces_.isEmpty()) { if (stackTraces_.isEmpty()) { stackTraces_ = other.stackTraces_; @@ -588,55 +544,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList stackTraces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStackTracesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_.getUnmodifiableView(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -644,90 +589,80 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index to set the value at. * @param value The stackTraces to set. * @return This builder for chaining. */ - public Builder setStackTraces(int index, java.lang.String value) { + public Builder setStackTraces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.set(index, value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTraces(java.lang.String value) { + public Builder addStackTraces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param values The stackTraces to add. * @return This builder for chaining. */ - public Builder addAllStackTraces(java.lang.Iterable values) { + public Builder addAllStackTraces( + java.lang.Iterable values) { ensureStackTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stackTraces_); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return This builder for chaining. */ public Builder clearStackTraces() { @@ -737,22 +672,20 @@ public Builder clearStackTraces() { return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The bytes of the stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { + public Builder addStackTracesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); @@ -761,20 +694,18 @@ public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -783,21 +714,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -805,68 +735,61 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.Xss) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Xss) private static final com.google.cloud.websecurityscanner.v1alpha.Xss DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.Xss(); } @@ -890,16 +813,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.Xss getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xss parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xss parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xss(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java similarity index 65% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java index dfa2303c..c70bccff 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java @@ -1,101 +1,70 @@ -/* - * 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/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface XssOrBuilder - extends +public interface XssOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.Xss) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - java.util.List getStackTracesList(); + java.util.List + getStackTracesList(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ int getStackTracesCount(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ java.lang.String getStackTraces(int index); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - com.google.protobuf.ByteString getStackTracesBytes(int index); + com.google.protobuf.ByteString + getStackTracesBytes(int index); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java index 0054c532..d11142bd 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerStubSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java index d6a5889f..70192069 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java index e8a0abd4..db26f1f5 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java index 5e6cc175..7af22c1d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build(); WebSecurityScannerClient webSecurityScannerClient = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java index 575bd274..727ec8a7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java index ea53bdff..a4c85d1c 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java index 63202718..34b359bc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigProjectnameScanconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java index f0a826cb..cd7e4682 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigStringScanconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java index 318e0813..8c4fd2af 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java index 25c76050..1947e5c5 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java index aa69ac77..d5967bcc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); webSecurityScannerClient.deleteScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java index 83a25761..0414c1e6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); webSecurityScannerClient.deleteScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java index abf0ec3e..62daf327 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java index e3e6ac24..ee6f47f9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java index cf08995d..42d831e5 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingFindingname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); Finding response = webSecurityScannerClient.getFinding(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java index 82caa2ee..a1f432b9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java index b1bfa157..305ccbeb 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java index 1a49e57f..5002e651 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java index c90631d7..576ec835 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java index 47c5cbd3..58893aaf 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java index 9d46af37..4b3128ea 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java index 24aa7b9a..f008a4f9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java index 3473b887..b648e9ed 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java index 326bcb94..7818875a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java index 4c85e3ae..2a8da9c9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 85% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java index 9b80874c..a05a94dc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrlsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java index c7a68c46..641e3ce4 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java index 0977ec19..4aeab865 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java index a02c74ea..0b73c9a7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java similarity index 83% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java index 110132b9..94614bab 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java similarity index 85% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java index ebeba969..66b5fd5d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java index 3c9686e3..3e707a4a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java index 96d74aef..eef02f68 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsScanrunnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); String filter = "filter-1274492040"; diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java index 1c99bf6e..974cfe51 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); String filter = "filter-1274492040"; diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java index d4b4f87a..bd4a491c 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java index 5b3cc258..149648c8 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java index 9d45b551..8a4929d3 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java index 022a70ef..8de69a53 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java index 9414028e..a30654ac 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 84% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java index 8ff38689..c2be7ab3 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java index e21641f0..58979eaf 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java index 8bb2b6a9..e5c74c17 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java index 3fe88a3e..6aa157df 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java index d221b828..35a4c74f 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java similarity index 84% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java index 833ec846..f53278a6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRunsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java index 854e4de0..6e1c6fe9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java index a7beab88..b51e29b7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java index 2c166a33..6dae71b3 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java index a8b37337..a52d2902 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java index 5df8e708..55722419 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java index 6da3d9e1..66ec2a30 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java index fc363f92..6aea3c66 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java index 00de868d..387b05c9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java index 47577125..17e55207 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java index 6d73b764..28f0b267 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java index 9086eebb..59e05185 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java index a2c5687c..e4b9f39e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java index fa428674..e6de0264 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java index b1fc7d58..2f70212e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfigScanconfigFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfig scanConfig = ScanConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java index 27874bcb..a109ebc6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java +++ b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java similarity index 74% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java index 1cb0a29d..d8ac65d3 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java +++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java @@ -45,8 +45,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -84,8 +87,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WebSecurityScannerClient webSecurityScannerClient =
@@ -109,8 +118,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -180,8 +192,11 @@ public WebSecurityScannerStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -210,8 +225,11 @@ public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConf
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -237,8 +255,11 @@ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -263,8 +284,11 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -289,8 +313,11 @@ public final UnaryCallable createScanConfig
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   webSecurityScannerClient.deleteScanConfig(name);
@@ -314,8 +341,11 @@ public final void deleteScanConfig(ScanConfigName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   webSecurityScannerClient.deleteScanConfig(name);
@@ -338,8 +368,11 @@ public final void deleteScanConfig(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder()
@@ -363,8 +396,11 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder()
@@ -388,8 +424,11 @@ public final UnaryCallable deleteScanConfigCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
@@ -413,8 +452,11 @@ public final ScanConfig getScanConfig(ScanConfigName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
@@ -437,8 +479,11 @@ public final ScanConfig getScanConfig(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder()
@@ -462,8 +507,11 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder()
@@ -487,8 +535,11 @@ public final UnaryCallable getScanConfigCallab
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
@@ -516,8 +567,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
@@ -542,8 +596,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -571,8 +628,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -601,8 +661,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -638,8 +701,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -671,8 +737,11 @@ public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask update
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -697,8 +766,11 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -723,8 +795,11 @@ public final UnaryCallable updateScanConfig
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ScanRun response = webSecurityScannerClient.startScanRun(name);
@@ -748,8 +823,11 @@ public final ScanRun startScanRun(ScanConfigName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   ScanRun response = webSecurityScannerClient.startScanRun(name);
@@ -772,8 +850,11 @@ public final ScanRun startScanRun(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request =
    *       StartScanRunRequest.newBuilder()
@@ -797,8 +878,11 @@ public final ScanRun startScanRun(StartScanRunRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request =
    *       StartScanRunRequest.newBuilder()
@@ -822,8 +906,11 @@ public final UnaryCallable startScanRunCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ScanRun response = webSecurityScannerClient.getScanRun(name);
@@ -847,8 +934,11 @@ public final ScanRun getScanRun(ScanRunName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ScanRun response = webSecurityScannerClient.getScanRun(name);
@@ -871,8 +961,11 @@ public final ScanRun getScanRun(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request =
    *       GetScanRunRequest.newBuilder()
@@ -896,8 +989,11 @@ public final ScanRun getScanRun(GetScanRunRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request =
    *       GetScanRunRequest.newBuilder()
@@ -920,8 +1016,11 @@ public final UnaryCallable getScanRunCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
@@ -949,8 +1048,11 @@ public final ListScanRunsPagedResponse listScanRuns(ScanConfigName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
@@ -975,8 +1077,11 @@ public final ListScanRunsPagedResponse listScanRuns(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1004,8 +1109,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1034,8 +1142,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1070,8 +1181,11 @@ public final UnaryCallable listScanRu
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
@@ -1095,8 +1209,11 @@ public final ScanRun stopScanRun(ScanRunName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
@@ -1119,8 +1236,11 @@ public final ScanRun stopScanRun(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request =
    *       StopScanRunRequest.newBuilder()
@@ -1144,8 +1264,11 @@ public final ScanRun stopScanRun(StopScanRunRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request =
    *       StopScanRunRequest.newBuilder()
@@ -1169,8 +1292,11 @@ public final UnaryCallable stopScanRunCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
@@ -1198,8 +1324,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
@@ -1224,8 +1353,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1253,8 +1385,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1283,8 +1418,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1320,8 +1458,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
    *   Finding response = webSecurityScannerClient.getFinding(name);
@@ -1346,8 +1487,11 @@ public final Finding getFinding(FindingName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name =
    *       FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString();
@@ -1372,8 +1516,11 @@ public final Finding getFinding(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request =
    *       GetFindingRequest.newBuilder()
@@ -1399,8 +1546,11 @@ public final Finding getFinding(GetFindingRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request =
    *       GetFindingRequest.newBuilder()
@@ -1425,8 +1575,11 @@ public final UnaryCallable getFindingCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   String filter = "filter-1274492040";
@@ -1459,8 +1612,11 @@ public final ListFindingsPagedResponse listFindings(ScanRunName parent, String f
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   String filter = "filter-1274492040";
@@ -1490,8 +1646,11 @@ public final ListFindingsPagedResponse listFindings(String parent, String filter
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1520,8 +1679,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1551,8 +1713,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1588,8 +1753,11 @@ public final UnaryCallable listFindin
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
@@ -1615,8 +1783,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName paren
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
@@ -1640,8 +1811,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder()
@@ -1667,8 +1841,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
similarity index 97%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
index b218cd5b..c060dc97 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
+++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
@@ -31,6 +31,7 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.cloud.websecurityscanner.v1beta.stub.WebSecurityScannerStubSettings;
@@ -58,8 +59,11 @@
  * 

For example, to set the total timeout of createScanConfig to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
similarity index 78%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
index 7e6dacc1..7056a945 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
+++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for WebSecurityScannerClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java
similarity index 99%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java
index ee47a4c8..4d268738 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java
+++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java
@@ -55,6 +55,7 @@
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
 import java.io.IOException;
+import java.util.Map;
 import java.util.concurrent.TimeUnit;
 import javax.annotation.Generated;
 
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
similarity index 99%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
index b0ce37aa..5440d1d0 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
+++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
@@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -388,7 +388,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
similarity index 98%
rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
index 52c5e9b6..79372d8d 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
+++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
@@ -97,8 +97,11 @@
  * 

For example, to set the total timeout of createScanConfig to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerStubSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java
similarity index 100%
rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java
rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java
diff --git a/owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java
new file mode 100644
index 00000000..15b67642
--- /dev/null
+++ b/owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java
@@ -0,0 +1,1349 @@
+package com.google.cloud.websecurityscanner.v1beta;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ * 
+ * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+ * applications hosted on Google Cloud Platform. It crawls your application, and
+ * attempts to exercise as many user inputs and event handlers as possible.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1beta.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { + io.grpc.MethodDescriptor getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanConfigMethod() { + io.grpc.MethodDescriptor getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanConfigsMethod() { + io.grpc.MethodDescriptor getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartScanRunMethod() { + io.grpc.MethodDescriptor getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) + .build(); + } + } + } + return getStartScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanRun", + requestType = com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanRunMethod() { + io.grpc.MethodDescriptor getGetScanRunMethod; + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + WebSecurityScannerGrpc.getGetScanRunMethod = getGetScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) + .build(); + } + } + } + return getGetScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", + requestType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanRunsMethod() { + io.grpc.MethodDescriptor getListScanRunsMethod; + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + WebSecurityScannerGrpc.getListScanRunsMethod = getListScanRunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) + .build(); + } + } + } + return getListScanRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopScanRun", + requestType = com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopScanRunMethod() { + io.grpc.MethodDescriptor getStopScanRunMethod; + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + WebSecurityScannerGrpc.getStopScanRunMethod = getStopScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) + .build(); + } + } + } + return getStopScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCrawledUrlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", + requestType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCrawledUrlsMethod() { + io.grpc.MethodDescriptor getListCrawledUrlsMethod; + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + WebSecurityScannerGrpc.getListCrawledUrlsMethod = getListCrawledUrlsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) + .build(); + } + } + } + return getListCrawledUrlsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFindingMethod() { + io.grpc.MethodDescriptor getGetFindingMethod; + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + WebSecurityScannerGrpc.getGetFindingMethod = getGetFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingsMethod() { + io.grpc.MethodDescriptor getListFindingsMethod; + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + WebSecurityScannerGrpc.getListFindingsMethod = getListFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", + requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingTypeStatsMethod() { + io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + WebSecurityScannerGrpc.getListFindingTypeStatsMethod = getListFindingTypeStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) + .build(); + } + } + } + return getListFindingTypeStatsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + }; + return WebSecurityScannerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WebSecurityScannerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + }; + return WebSecurityScannerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WebSecurityScannerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + }; + return WebSecurityScannerFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static abstract class WebSecurityScannerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanConfigMethod(), responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanConfigsMethod(), responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanRunsMethod(), responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopScanRunMethod(), responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig>( + this, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SCAN_CONFIG))) + .addMethod( + getGetScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig>( + this, METHODID_GET_SCAN_CONFIG))) + .addMethod( + getListScanConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>( + this, METHODID_LIST_SCAN_CONFIGS))) + .addMethod( + getUpdateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig>( + this, METHODID_UPDATE_SCAN_CONFIG))) + .addMethod( + getStartScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun>( + this, METHODID_START_SCAN_RUN))) + .addMethod( + getGetScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun>( + this, METHODID_GET_SCAN_RUN))) + .addMethod( + getListScanRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>( + this, METHODID_LIST_SCAN_RUNS))) + .addMethod( + getStopScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun>( + this, METHODID_STOP_SCAN_RUN))) + .addMethod( + getListCrawledUrlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>( + this, METHODID_LIST_CRAWLED_URLS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, + com.google.cloud.websecurityscanner.v1beta.Finding>( + this, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( + this, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerStub extends io.grpc.stub.AbstractAsyncStub { + private WebSecurityScannerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private WebSecurityScannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanConfig createScanConfig(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.protobuf.Empty deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanConfig updateScanConfig(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanRun startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanRunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanRun stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.Finding getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerFutureStub extends io.grpc.stub.AbstractFutureStub { + private WebSecurityScannerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createScanConfig( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteScanConfig( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanConfig( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanConfigs( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateScanConfig( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startScanRun( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanRun( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanRuns( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopScanRun( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCrawledUrls( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFinding( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindings( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindingTypeStats( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCAN_CONFIG = 0; + private static final int METHODID_DELETE_SCAN_CONFIG = 1; + private static final int METHODID_GET_SCAN_CONFIG = 2; + private static final int METHODID_LIST_SCAN_CONFIGS = 3; + private static final int METHODID_UPDATE_SCAN_CONFIG = 4; + private static final int METHODID_START_SCAN_RUN = 5; + private static final int METHODID_GET_SCAN_RUN = 6; + private static final int METHODID_LIST_SCAN_RUNS = 7; + private static final int METHODID_STOP_SCAN_RUN = 8; + private static final int METHODID_LIST_CRAWLED_URLS = 9; + private static final int METHODID_GET_FINDING = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WebSecurityScannerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCAN_CONFIG: + serviceImpl.createScanConfig((com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCAN_CONFIG: + serviceImpl.deleteScanConfig((com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_CONFIG: + serviceImpl.getScanConfig((com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_CONFIGS: + serviceImpl.listScanConfigs((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCAN_CONFIG: + serviceImpl.updateScanConfig((com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_SCAN_RUN: + serviceImpl.startScanRun((com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_RUN: + serviceImpl.getScanRun((com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_RUNS: + serviceImpl.listScanRuns((com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_SCAN_RUN: + serviceImpl.stopScanRun((com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CRAWLED_URLS: + serviceImpl.listCrawledUrls((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding((com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings((com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDING_TYPE_STATS: + serviceImpl.listFindingTypeStats((com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WebSecurityScannerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WebSecurityScanner"); + } + } + + private static final class WebSecurityScannerFileDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier { + WebSecurityScannerFileDescriptorSupplier() {} + } + + private static final class WebSecurityScannerMethodDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WebSecurityScannerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WebSecurityScannerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) + .addMethod(getCreateScanConfigMethod()) + .addMethod(getDeleteScanConfigMethod()) + .addMethod(getGetScanConfigMethod()) + .addMethod(getListScanConfigsMethod()) + .addMethod(getUpdateScanConfigMethod()) + .addMethod(getStartScanRunMethod()) + .addMethod(getGetScanRunMethod()) + .addMethod(getListScanRunsMethod()) + .addMethod(getStopScanRunMethod()) + .addMethod(getListCrawledUrlsMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListFindingTypeStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java index a8334886..8e5bbd3d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1beta/crawled_url.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
  * Security Scanner Service crawls the web applications, following all links
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CrawledUrl}
  */
-public final class CrawledUrl extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CrawledUrl extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.CrawledUrl)
     CrawledUrlOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CrawledUrl.newBuilder() to construct.
   private CrawledUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CrawledUrl() {
     httpMethod_ = "";
     url_ = "";
@@ -47,15 +29,16 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CrawledUrl(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,34 +57,31 @@ private CrawledUrl(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              url_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            url_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            body_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,40 +89,35 @@ private CrawledUrl(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class,
-            com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
   }
 
   public static final int HTTP_METHOD_FIELD_NUMBER = 1;
   private volatile java.lang.Object httpMethod_;
   /**
-   *
-   *
    * 
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ @java.lang.Override @@ -151,30 +126,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -185,14 +160,11 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** - * - * *
    * The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ @java.lang.Override @@ -201,29 +173,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
    * The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -234,14 +206,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int BODY_FIELD_NUMBER = 3; private volatile java.lang.Object body_; /** - * - * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ @java.lang.Override @@ -250,29 +219,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -281,7 +250,6 @@ public com.google.protobuf.ByteString getBodyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpMethod_); } @@ -329,17 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.CrawledUrl)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.CrawledUrl other = - (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) obj; + com.google.cloud.websecurityscanner.v1beta.CrawledUrl other = (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) obj; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getUrl().equals(other.getUrl())) return false; - if (!getBody().equals(other.getBody())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,104 +334,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.CrawledUrl prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.CrawledUrl prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
    * Security Scanner Service crawls the web applications, following all links
@@ -469,23 +432,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CrawledUrl}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.CrawledUrl)
       com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class,
-              com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.CrawledUrl.newBuilder()
@@ -493,15 +454,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -515,9 +477,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
@@ -536,8 +498,7 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.CrawledUrl buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.CrawledUrl result =
-          new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(this);
+      com.google.cloud.websecurityscanner.v1beta.CrawledUrl result = new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(this);
       result.httpMethod_ = httpMethod_;
       result.url_ = url_;
       result.body_ = body_;
@@ -549,39 +510,38 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.CrawledUrl) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.CrawledUrl) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.CrawledUrl)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,8 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.CrawledUrl other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()) return this;
       if (!other.getHttpMethod().isEmpty()) {
         httpMethod_ = other.httpMethod_;
         onChanged();
@@ -622,8 +581,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -635,21 +593,19 @@ public Builder mergeFrom(
 
     private java.lang.Object httpMethod_ = "";
     /**
-     *
-     *
      * 
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -658,22 +614,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -681,64 +636,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -746,20 +694,18 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object url_ = ""; /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -768,21 +714,20 @@ public java.lang.String getUrl() { } } /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -790,61 +735,54 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -852,20 +790,18 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -874,21 +810,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -896,68 +831,61 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -967,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.CrawledUrl) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.CrawledUrl) private static final com.google.cloud.websecurityscanner.v1beta.CrawledUrl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(); } @@ -981,16 +909,16 @@ public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawledUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawledUrl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CrawledUrl(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1005,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java index ff068067..43a78234 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java @@ -1,102 +1,71 @@ -/* - * 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/cloud/websecurityscanner/v1beta/crawled_url.proto package com.google.cloud.websecurityscanner.v1beta; -public interface CrawledUrlOrBuilder - extends +public interface CrawledUrlOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.CrawledUrl) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
    * The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java new file mode 100644 index 00000000..4e001c6f --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/crawled_url.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class CrawledUrlProto { + private CrawledUrlProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/websecurityscanner/v1beta" + + "/crawled_url.proto\022&google.cloud.websecu" + + "rityscanner.v1beta\"<\n\nCrawledUrl\022\023\n\013http" + + "_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\t" + + "B\227\002\n*com.google.cloud.websecurityscanner" + + ".v1betaB\017CrawledUrlProtoP\001ZXgoogle.golan" + + "g.org/genproto/googleapis/cloud/websecur" + + "ityscanner/v1beta;websecurityscanner\252\002&G" + + "oogle.Cloud.WebSecurityScanner.V1Beta\312\002&" + + "Google\\Cloud\\WebSecurityScanner\\V1beta\352\002" + + ")Google::Cloud::WebSecurityScanner::V1be" + + "tab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor, + new java.lang.String[] { "HttpMethod", "Url", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java index 1db99ab1..dd00c27e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `CreateScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest} */ -public final class CreateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) CreateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateScanConfigRequest.newBuilder() to construct. private CreateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateScanConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private CreateScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,42 +86,35 @@ private CreateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -152,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -205,34 +169,23 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -240,7 +193,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -318,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `CreateScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,16 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -495,8 +437,7 @@ public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(this); result.parent_ = parent_; if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; @@ -511,51 +452,46 @@ public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -582,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -621,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -646,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -717,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -784,15 +679,11 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConf return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder builderForValue) { @@ -806,23 +697,17 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -834,15 +719,11 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanCo return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -856,71 +737,55 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -930,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..b4f98425 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface CreateScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the scanConfig field is set. + */ + boolean hasScanConfig(); + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The scanConfig. + */ + com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java similarity index 63% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java index b30f12e6..666b725d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `DeleteScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest} */ -public final class DeleteScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) DeleteScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteScanConfigRequest.newBuilder() to construct. private DeleteScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..9f431507 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface DeleteScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java index 15ae7730..0815ad80 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A Finding resource represents a vulnerability instance identified during a
  * ScanRun.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Finding}
  */
-public final class Finding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Finding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.Finding)
     FindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Finding() {
     name_ = "";
     findingType_ = "";
@@ -53,15 +35,16 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,186 +63,151 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              findingType_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            findingType_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fuzzedUrl_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            fuzzedUrl_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            body_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              reproductionUrl_ = s;
-              break;
-            }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            reproductionUrl_ = s;
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            frameUrl_ = s;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              frameUrl_ = s;
-              break;
+            finalUrl_ = s;
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            trackingId_ = s;
+            break;
+          }
+          case 90: {
+            com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder subBuilder = null;
+            if (outdatedLibrary_ != null) {
+              subBuilder = outdatedLibrary_.toBuilder();
+            }
+            outdatedLibrary_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outdatedLibrary_);
+              outdatedLibrary_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              finalUrl_ = s;
-              break;
+            break;
+          }
+          case 98: {
+            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder subBuilder = null;
+            if (violatingResource_ != null) {
+              subBuilder = violatingResource_.toBuilder();
+            }
+            violatingResource_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ViolatingResource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(violatingResource_);
+              violatingResource_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              trackingId_ = s;
-              break;
+            break;
+          }
+          case 106: {
+            com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder subBuilder = null;
+            if (vulnerableParameters_ != null) {
+              subBuilder = vulnerableParameters_.toBuilder();
+            }
+            vulnerableParameters_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableParameters_);
+              vulnerableParameters_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder subBuilder = null;
-              if (outdatedLibrary_ != null) {
-                subBuilder = outdatedLibrary_.toBuilder();
-              }
-              outdatedLibrary_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outdatedLibrary_);
-                outdatedLibrary_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 114: {
+            com.google.cloud.websecurityscanner.v1beta.Xss.Builder subBuilder = null;
+            if (xss_ != null) {
+              subBuilder = xss_.toBuilder();
             }
-          case 98:
-            {
-              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder subBuilder =
-                  null;
-              if (violatingResource_ != null) {
-                subBuilder = violatingResource_.toBuilder();
-              }
-              violatingResource_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.ViolatingResource.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(violatingResource_);
-                violatingResource_ = subBuilder.buildPartial();
-              }
-
-              break;
+            xss_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.Xss.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(xss_);
+              xss_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder subBuilder =
-                  null;
-              if (vulnerableParameters_ != null) {
-                subBuilder = vulnerableParameters_.toBuilder();
-              }
-              vulnerableParameters_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableParameters_);
-                vulnerableParameters_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 122: {
+            com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder subBuilder = null;
+            if (vulnerableHeaders_ != null) {
+              subBuilder = vulnerableHeaders_.toBuilder();
             }
-          case 114:
-            {
-              com.google.cloud.websecurityscanner.v1beta.Xss.Builder subBuilder = null;
-              if (xss_ != null) {
-                subBuilder = xss_.toBuilder();
-              }
-              xss_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.Xss.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(xss_);
-                xss_ = subBuilder.buildPartial();
-              }
-
-              break;
+            vulnerableHeaders_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableHeaders_);
+              vulnerableHeaders_ = subBuilder.buildPartial();
             }
-          case 122:
-            {
-              com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder subBuilder =
-                  null;
-              if (vulnerableHeaders_ != null) {
-                subBuilder = vulnerableHeaders_.toBuilder();
-              }
-              vulnerableHeaders_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableHeaders_);
-                vulnerableHeaders_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 130: {
+            com.google.cloud.websecurityscanner.v1beta.Form.Builder subBuilder = null;
+            if (form_ != null) {
+              subBuilder = form_.toBuilder();
             }
-          case 130:
-            {
-              com.google.cloud.websecurityscanner.v1beta.Form.Builder subBuilder = null;
-              if (form_ != null) {
-                subBuilder = form_.toBuilder();
-              }
-              form_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.Form.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(form_);
-                form_ = subBuilder.buildPartial();
-              }
-
-              break;
+            form_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.Form.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(form_);
+              form_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -267,33 +215,29 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.Finding.class,
-            com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.Finding.class, com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -301,7 +245,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -310,15 +253,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -326,15 +268,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -345,8 +288,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object findingType_; /** - * - * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -354,7 +295,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string finding_type = 2; - * * @return The findingType. */ @java.lang.Override @@ -363,15 +303,14 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** - * - * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -379,15 +318,16 @@ public java.lang.String getFindingType() {
    * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -398,15 +338,12 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int HTTP_METHOD_FIELD_NUMBER = 3; private volatile java.lang.Object httpMethod_; /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ @java.lang.Override @@ -415,30 +352,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -449,15 +386,12 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int FUZZED_URL_FIELD_NUMBER = 4; private volatile java.lang.Object fuzzedUrl_; /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ @java.lang.Override @@ -466,30 +400,30 @@ public java.lang.String getFuzzedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; } } /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -500,14 +434,11 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { public static final int BODY_FIELD_NUMBER = 5; private volatile java.lang.Object body_; /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ @java.lang.Override @@ -516,29 +447,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -549,14 +480,11 @@ public com.google.protobuf.ByteString getBodyBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ @java.lang.Override @@ -565,29 +493,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -598,15 +526,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; private volatile java.lang.Object reproductionUrl_; /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ @java.lang.Override @@ -615,30 +540,30 @@ public java.lang.String getReproductionUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; } } /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -649,15 +574,12 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { public static final int FRAME_URL_FIELD_NUMBER = 8; private volatile java.lang.Object frameUrl_; /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ @java.lang.Override @@ -666,30 +588,30 @@ public java.lang.String getFrameUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; } } /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -700,14 +622,11 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { public static final int FINAL_URL_FIELD_NUMBER = 9; private volatile java.lang.Object finalUrl_; /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ @java.lang.Override @@ -716,29 +635,29 @@ public java.lang.String getFinalUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } } /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -749,15 +668,12 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { public static final int TRACKING_ID_FIELD_NUMBER = 10; private volatile java.lang.Object trackingId_; /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ @java.lang.Override @@ -766,30 +682,30 @@ public java.lang.String getTrackingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; } } /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ @java.lang.Override - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -800,15 +716,12 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { public static final int FORM_FIELD_NUMBER = 16; private com.google.cloud.websecurityscanner.v1beta.Form form_; /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return Whether the form field is set. */ @java.lang.Override @@ -816,26 +729,19 @@ public boolean hasForm() { return form_ != null; } /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return The form. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Form getForm() { - return form_ == null - ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() - : form_; + return form_ == null ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_; } /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -851,14 +757,11 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
   public static final int OUTDATED_LIBRARY_FIELD_NUMBER = 11;
   private com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdatedLibrary_;
   /**
-   *
-   *
    * 
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ @java.lang.Override @@ -866,25 +769,18 @@ public boolean hasOutdatedLibrary() { return outdatedLibrary_ != null; } /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLibrary() { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } /** - * - * *
    * An addon containing information about outdated libraries.
    * 
@@ -892,23 +788,19 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLib * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { return getOutdatedLibrary(); } public static final int VIOLATING_RESOURCE_FIELD_NUMBER = 12; private com.google.cloud.websecurityscanner.v1beta.ViolatingResource violatingResource_; /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ @java.lang.Override @@ -916,26 +808,19 @@ public boolean hasViolatingResource() { return violatingResource_ != null; } /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolatingResource() { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_; } /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -944,22 +829,18 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolating
    * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder
-      getViolatingResourceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
     return getViolatingResource();
   }
 
   public static final int VULNERABLE_HEADERS_FIELD_NUMBER = 15;
   private com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerableHeaders_;
   /**
-   *
-   *
    * 
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ @java.lang.Override @@ -967,25 +848,18 @@ public boolean hasVulnerableHeaders() { return vulnerableHeaders_ != null; } /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerableHeaders() { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
@@ -993,24 +867,19 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerabl * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { return getVulnerableHeaders(); } public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER = 13; private com.google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerableParameters_; /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ @java.lang.Override @@ -1018,52 +887,39 @@ public boolean hasVulnerableParameters() { return vulnerableParameters_ != null; } /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulnerableParameters() { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { return getVulnerableParameters(); } public static final int XSS_FIELD_NUMBER = 14; private com.google.cloud.websecurityscanner.v1beta.Xss xss_; /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return Whether the xss field is set. */ @java.lang.Override @@ -1071,25 +927,18 @@ public boolean hasXss() { return xss_ != null; } /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return The xss. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; } /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
@@ -1102,7 +951,6 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1114,7 +962,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1203,23 +1052,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trackingId_); } if (outdatedLibrary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOutdatedLibrary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getOutdatedLibrary()); } if (violatingResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getViolatingResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getViolatingResource()); } if (vulnerableParameters_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVulnerableParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getVulnerableParameters()); } if (xss_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getXss()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getXss()); } if (vulnerableHeaders_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getVulnerableHeaders()); } if (form_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getForm()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getForm()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1229,47 +1083,62 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.Finding)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.Finding other = - (com.google.cloud.websecurityscanner.v1beta.Finding) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFindingType().equals(other.getFindingType())) return false; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getFuzzedUrl().equals(other.getFuzzedUrl())) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getReproductionUrl().equals(other.getReproductionUrl())) return false; - if (!getFrameUrl().equals(other.getFrameUrl())) return false; - if (!getFinalUrl().equals(other.getFinalUrl())) return false; - if (!getTrackingId().equals(other.getTrackingId())) return false; + com.google.cloud.websecurityscanner.v1beta.Finding other = (com.google.cloud.websecurityscanner.v1beta.Finding) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFindingType() + .equals(other.getFindingType())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getFuzzedUrl() + .equals(other.getFuzzedUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getReproductionUrl() + .equals(other.getReproductionUrl())) return false; + if (!getFrameUrl() + .equals(other.getFrameUrl())) return false; + if (!getFinalUrl() + .equals(other.getFinalUrl())) return false; + if (!getTrackingId() + .equals(other.getTrackingId())) return false; if (hasForm() != other.hasForm()) return false; if (hasForm()) { - if (!getForm().equals(other.getForm())) return false; + if (!getForm() + .equals(other.getForm())) return false; } if (hasOutdatedLibrary() != other.hasOutdatedLibrary()) return false; if (hasOutdatedLibrary()) { - if (!getOutdatedLibrary().equals(other.getOutdatedLibrary())) return false; + if (!getOutdatedLibrary() + .equals(other.getOutdatedLibrary())) return false; } if (hasViolatingResource() != other.hasViolatingResource()) return false; if (hasViolatingResource()) { - if (!getViolatingResource().equals(other.getViolatingResource())) return false; + if (!getViolatingResource() + .equals(other.getViolatingResource())) return false; } if (hasVulnerableHeaders() != other.hasVulnerableHeaders()) return false; if (hasVulnerableHeaders()) { - if (!getVulnerableHeaders().equals(other.getVulnerableHeaders())) return false; + if (!getVulnerableHeaders() + .equals(other.getVulnerableHeaders())) return false; } if (hasVulnerableParameters() != other.hasVulnerableParameters()) return false; if (hasVulnerableParameters()) { - if (!getVulnerableParameters().equals(other.getVulnerableParameters())) return false; + if (!getVulnerableParameters() + .equals(other.getVulnerableParameters())) return false; } if (hasXss() != other.hasXss()) return false; if (hasXss()) { - if (!getXss().equals(other.getXss())) return false; + if (!getXss() + .equals(other.getXss())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1332,103 +1201,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.Finding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.Finding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Finding resource represents a vulnerability instance identified during a
    * ScanRun.
@@ -1436,23 +1298,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Finding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.Finding)
       com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.Finding.class,
-              com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.Finding.class, com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.Finding.newBuilder()
@@ -1460,15 +1320,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1532,9 +1393,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1553,8 +1414,7 @@ public com.google.cloud.websecurityscanner.v1beta.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.Finding buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.Finding result =
-          new com.google.cloud.websecurityscanner.v1beta.Finding(this);
+      com.google.cloud.websecurityscanner.v1beta.Finding result = new com.google.cloud.websecurityscanner.v1beta.Finding(this);
       result.name_ = name_;
       result.findingType_ = findingType_;
       result.httpMethod_ = httpMethod_;
@@ -1603,39 +1463,38 @@ public com.google.cloud.websecurityscanner.v1beta.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.Finding) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Finding) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Finding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1643,8 +1502,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.Finding other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1722,8 +1580,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.Finding) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.Finding) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1735,8 +1592,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1744,13 +1599,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1759,8 +1614,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1768,14 +1621,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1783,8 +1637,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1792,22 +1644,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1815,18 +1665,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1834,16 +1681,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1851,8 +1698,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object findingType_ = ""; /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1860,13 +1705,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string finding_type = 2; - * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -1875,8 +1720,6 @@ public java.lang.String getFindingType() { } } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1884,14 +1727,15 @@ public java.lang.String getFindingType() {
      * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -1899,8 +1743,6 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1908,22 +1750,20 @@ public com.google.protobuf.ByteString getFindingTypeBytes() {
      * 
* * string finding_type = 2; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(java.lang.String value) { + public Builder setFindingType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1931,18 +1771,15 @@ public Builder setFindingType(java.lang.String value) {
      * 
* * string finding_type = 2; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1950,16 +1787,16 @@ public Builder clearFindingType() {
      * 
* * string finding_type = 2; - * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; @@ -1967,21 +1804,19 @@ public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object httpMethod_ = ""; /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -1990,22 +1825,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -2013,64 +1847,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -2078,21 +1905,19 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object fuzzedUrl_ = ""; /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ public java.lang.String getFuzzedUrl() { java.lang.Object ref = fuzzedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; @@ -2101,22 +1926,21 @@ public java.lang.String getFuzzedUrl() { } } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -2124,64 +1948,57 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { } } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrl(java.lang.String value) { + public Builder setFuzzedUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fuzzedUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return This builder for chaining. */ public Builder clearFuzzedUrl() { - + fuzzedUrl_ = getDefaultInstance().getFuzzedUrl(); onChanged(); return this; } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The bytes for fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFuzzedUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fuzzedUrl_ = value; onChanged(); return this; @@ -2189,20 +2006,18 @@ public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -2211,21 +2026,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -2233,61 +2047,54 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; @@ -2295,20 +2102,18 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2317,21 +2122,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2339,61 +2143,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2401,21 +2198,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object reproductionUrl_ = ""; /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ public java.lang.String getReproductionUrl() { java.lang.Object ref = reproductionUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; @@ -2424,22 +2219,21 @@ public java.lang.String getReproductionUrl() { } } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -2447,64 +2241,57 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { } } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrl(java.lang.String value) { + public Builder setReproductionUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reproductionUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return This builder for chaining. */ public Builder clearReproductionUrl() { - + reproductionUrl_ = getDefaultInstance().getReproductionUrl(); onChanged(); return this; } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The bytes for reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { + public Builder setReproductionUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reproductionUrl_ = value; onChanged(); return this; @@ -2512,21 +2299,19 @@ public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object frameUrl_ = ""; /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The frameUrl. */ public java.lang.String getFrameUrl() { java.lang.Object ref = frameUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; @@ -2535,22 +2320,21 @@ public java.lang.String getFrameUrl() { } } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -2558,64 +2342,57 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { } } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrl(java.lang.String value) { + public Builder setFrameUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + frameUrl_ = value; onChanged(); return this; } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return This builder for chaining. */ public Builder clearFrameUrl() { - + frameUrl_ = getDefaultInstance().getFrameUrl(); onChanged(); return this; } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The bytes for frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFrameUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameUrl_ = value; onChanged(); return this; @@ -2623,20 +2400,18 @@ public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object finalUrl_ = ""; /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; @@ -2645,21 +2420,20 @@ public java.lang.String getFinalUrl() { } } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -2667,61 +2441,54 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { } } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrl(java.lang.String value) { + public Builder setFinalUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + finalUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return This builder for chaining. */ public Builder clearFinalUrl() { - + finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFinalUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finalUrl_ = value; onChanged(); return this; @@ -2729,21 +2496,19 @@ public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object trackingId_ = ""; /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The trackingId. */ public java.lang.String getTrackingId() { java.lang.Object ref = trackingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; @@ -2752,22 +2517,21 @@ public java.lang.String getTrackingId() { } } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -2775,64 +2539,57 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { } } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingId(java.lang.String value) { + public Builder setTrackingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingId_ = value; onChanged(); return this; } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return This builder for chaining. */ public Builder clearTrackingId() { - + trackingId_ = getDefaultInstance().getTrackingId(); onChanged(); return this; } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The bytes for trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { + public Builder setTrackingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingId_ = value; onChanged(); return this; @@ -2840,49 +2597,36 @@ public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1beta.Form form_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Form, - com.google.cloud.websecurityscanner.v1beta.Form.Builder, - com.google.cloud.websecurityscanner.v1beta.FormOrBuilder> - formBuilder_; + com.google.cloud.websecurityscanner.v1beta.Form, com.google.cloud.websecurityscanner.v1beta.Form.Builder, com.google.cloud.websecurityscanner.v1beta.FormOrBuilder> formBuilder_; /** - * - * *
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return Whether the form field is set. */ public boolean hasForm() { return formBuilder_ != null || form_ != null; } /** - * - * *
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return The form. */ public com.google.cloud.websecurityscanner.v1beta.Form getForm() { if (formBuilder_ == null) { - return form_ == null - ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() - : form_; + return form_ == null ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_; } else { return formBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2904,8 +2648,6 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1beta.Form value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2925,8 +2667,6 @@ public Builder setForm(
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2938,9 +2678,7 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1beta.Form value)
       if (formBuilder_ == null) {
         if (form_ != null) {
           form_ =
-              com.google.cloud.websecurityscanner.v1beta.Form.newBuilder(form_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1beta.Form.newBuilder(form_).mergeFrom(value).buildPartial();
         } else {
           form_ = value;
         }
@@ -2952,8 +2690,6 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1beta.Form value)
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2973,8 +2709,6 @@ public Builder clearForm() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2983,13 +2717,11 @@ public Builder clearForm() {
      * .google.cloud.websecurityscanner.v1beta.Form form = 16;
      */
     public com.google.cloud.websecurityscanner.v1beta.Form.Builder getFormBuilder() {
-
+      
       onChanged();
       return getFormFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3001,14 +2733,11 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
       if (formBuilder_ != null) {
         return formBuilder_.getMessageOrBuilder();
       } else {
-        return form_ == null
-            ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()
-            : form_;
+        return form_ == null ?
+            com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_;
       }
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3017,17 +2746,14 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
      * .google.cloud.websecurityscanner.v1beta.Form form = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.Form,
-            com.google.cloud.websecurityscanner.v1beta.Form.Builder,
-            com.google.cloud.websecurityscanner.v1beta.FormOrBuilder>
+        com.google.cloud.websecurityscanner.v1beta.Form, com.google.cloud.websecurityscanner.v1beta.Form.Builder, com.google.cloud.websecurityscanner.v1beta.FormOrBuilder> 
         getFormFieldBuilder() {
       if (formBuilder_ == null) {
-        formBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1beta.Form,
-                com.google.cloud.websecurityscanner.v1beta.Form.Builder,
-                com.google.cloud.websecurityscanner.v1beta.FormOrBuilder>(
-                getForm(), getParentForChildren(), isClean());
+        formBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1beta.Form, com.google.cloud.websecurityscanner.v1beta.Form.Builder, com.google.cloud.websecurityscanner.v1beta.FormOrBuilder>(
+                getForm(),
+                getParentForChildren(),
+                isClean());
         form_ = null;
       }
       return formBuilder_;
@@ -3035,55 +2761,41 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
 
     private com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdatedLibrary_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary,
-            com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder,
-            com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder>
-        outdatedLibraryBuilder_;
+        com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder> outdatedLibraryBuilder_;
     /**
-     *
-     *
      * 
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ public boolean hasOutdatedLibrary() { return outdatedLibraryBuilder_ != null || outdatedLibrary_ != null; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLibrary() { if (outdatedLibraryBuilder_ == null) { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } else { return outdatedLibraryBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public Builder setOutdatedLibrary( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { + public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3097,8 +2809,6 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3117,23 +2827,17 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public Builder mergeOutdatedLibrary( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { + public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (outdatedLibrary_ != null) { outdatedLibrary_ = - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder( - outdatedLibrary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder(outdatedLibrary_).mergeFrom(value).buildPartial(); } else { outdatedLibrary_ = value; } @@ -3145,8 +2849,6 @@ public Builder mergeOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3165,42 +2867,33 @@ public Builder clearOutdatedLibrary() { return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder - getOutdatedLibraryBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder getOutdatedLibraryBuilder() { + onChanged(); return getOutdatedLibraryFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { if (outdatedLibraryBuilder_ != null) { return outdatedLibraryBuilder_.getMessageOrBuilder(); } else { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3208,17 +2901,14 @@ public Builder clearOutdatedLibrary() { * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder> + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder> getOutdatedLibraryFieldBuilder() { if (outdatedLibraryBuilder_ == null) { - outdatedLibraryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder>( - getOutdatedLibrary(), getParentForChildren(), isClean()); + outdatedLibraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder>( + getOutdatedLibrary(), + getParentForChildren(), + isClean()); outdatedLibrary_ = null; } return outdatedLibraryBuilder_; @@ -3226,61 +2916,44 @@ public Builder clearOutdatedLibrary() { private com.google.cloud.websecurityscanner.v1beta.ViolatingResource violatingResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ViolatingResource, - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> - violatingResourceBuilder_; + com.google.cloud.websecurityscanner.v1beta.ViolatingResource, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> violatingResourceBuilder_; /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; * @return Whether the violatingResource field is set. */ public boolean hasViolatingResource() { return violatingResourceBuilder_ != null || violatingResource_ != null; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; * @return The violatingResource. */ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolatingResource() { if (violatingResourceBuilder_ == null) { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_; } else { return violatingResourceBuilder_.getMessage(); } } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ - public Builder setViolatingResource( - com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { + public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3294,15 +2967,12 @@ public Builder setViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ public Builder setViolatingResource( com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder builderForValue) { @@ -3316,25 +2986,18 @@ public Builder setViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ - public Builder mergeViolatingResource( - com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { + public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (violatingResource_ != null) { violatingResource_ = - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder( - violatingResource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder(violatingResource_).mergeFrom(value).buildPartial(); } else { violatingResource_ = value; } @@ -3346,15 +3009,12 @@ public Builder mergeViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ public Builder clearViolatingResource() { if (violatingResourceBuilder_ == null) { @@ -3368,66 +3028,51 @@ public Builder clearViolatingResource() { return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ - public com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder - getViolatingResourceBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder getViolatingResourceBuilder() { + onChanged(); return getViolatingResourceFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ - public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder - getViolatingResourceOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { if (violatingResourceBuilder_ != null) { return violatingResourceBuilder_.getMessageOrBuilder(); } else { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? + com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_; } } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ViolatingResource, - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ViolatingResource, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> getViolatingResourceFieldBuilder() { if (violatingResourceBuilder_ == null) { - violatingResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ViolatingResource, - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder>( - getViolatingResource(), getParentForChildren(), isClean()); + violatingResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ViolatingResource, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder>( + getViolatingResource(), + getParentForChildren(), + isClean()); violatingResource_ = null; } return violatingResourceBuilder_; @@ -3435,58 +3080,41 @@ public Builder clearViolatingResource() { private com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerableHeaders_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> - vulnerableHeadersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> vulnerableHeadersBuilder_; /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; * @return Whether the vulnerableHeaders field is set. */ public boolean hasVulnerableHeaders() { return vulnerableHeadersBuilder_ != null || vulnerableHeaders_ != null; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; * @return The vulnerableHeaders. */ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } else { return vulnerableHeadersBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - public Builder setVulnerableHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { + public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3500,14 +3128,11 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ public Builder setVulnerableHeaders( com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder builderForValue) { @@ -3521,24 +3146,17 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - public Builder mergeVulnerableHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { + public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (vulnerableHeaders_ != null) { vulnerableHeaders_ = - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder( - vulnerableHeaders_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder(vulnerableHeaders_).mergeFrom(value).buildPartial(); } else { vulnerableHeaders_ = value; } @@ -3550,14 +3168,11 @@ public Builder mergeVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ public Builder clearVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { @@ -3571,63 +3186,48 @@ public Builder clearVulnerableHeaders() { return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder - getVulnerableHeadersBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder getVulnerableHeadersBuilder() { + onChanged(); return getVulnerableHeadersFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { if (vulnerableHeadersBuilder_ != null) { return vulnerableHeadersBuilder_.getMessageOrBuilder(); } else { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> getVulnerableHeadersFieldBuilder() { if (vulnerableHeadersBuilder_ == null) { - vulnerableHeadersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder>( - getVulnerableHeaders(), getParentForChildren(), isClean()); + vulnerableHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder>( + getVulnerableHeaders(), + getParentForChildren(), + isClean()); vulnerableHeaders_ = null; } return vulnerableHeadersBuilder_; @@ -3635,65 +3235,44 @@ public Builder clearVulnerableHeaders() { private com.google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerableParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> - vulnerableParametersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> vulnerableParametersBuilder_; /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ public boolean hasVulnerableParameters() { return vulnerableParametersBuilder_ != null || vulnerableParameters_ != null; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - getVulnerableParameters() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } else { return vulnerableParametersBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - public Builder setVulnerableParameters( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { + public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3707,16 +3286,12 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ public Builder setVulnerableParameters( com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder builderForValue) { @@ -3730,26 +3305,18 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - public Builder mergeVulnerableParameters( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { + public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (vulnerableParameters_ != null) { vulnerableParameters_ = - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder( - vulnerableParameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder(vulnerableParameters_).mergeFrom(value).buildPartial(); } else { vulnerableParameters_ = value; } @@ -3761,16 +3328,12 @@ public Builder mergeVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ public Builder clearVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { @@ -3784,69 +3347,51 @@ public Builder clearVulnerableParameters() { return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder - getVulnerableParametersBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder getVulnerableParametersBuilder() { + onChanged(); return getVulnerableParametersFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { if (vulnerableParametersBuilder_ != null) { return vulnerableParametersBuilder_.getMessageOrBuilder(); } else { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> getVulnerableParametersFieldBuilder() { if (vulnerableParametersBuilder_ == null) { - vulnerableParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder>( - getVulnerableParameters(), getParentForChildren(), isClean()); + vulnerableParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder>( + getVulnerableParameters(), + getParentForChildren(), + isClean()); vulnerableParameters_ = null; } return vulnerableParametersBuilder_; @@ -3854,47 +3399,34 @@ public Builder clearVulnerableParameters() { private com.google.cloud.websecurityscanner.v1beta.Xss xss_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Xss, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder, - com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> - xssBuilder_; + com.google.cloud.websecurityscanner.v1beta.Xss, com.google.cloud.websecurityscanner.v1beta.Xss.Builder, com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> xssBuilder_; /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return Whether the xss field is set. */ public boolean hasXss() { return xssBuilder_ != null || xss_ != null; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return The xss. */ public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { if (xssBuilder_ == null) { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; } else { return xssBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3915,15 +3447,14 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; */ - public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss.Builder builderForValue) { + public Builder setXss( + com.google.cloud.websecurityscanner.v1beta.Xss.Builder builderForValue) { if (xssBuilder_ == null) { xss_ = builderForValue.build(); onChanged(); @@ -3934,8 +3465,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss.Builder bui return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3946,9 +3475,7 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { if (xssBuilder_ == null) { if (xss_ != null) { xss_ = - com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder(xss_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder(xss_).mergeFrom(value).buildPartial(); } else { xss_ = value; } @@ -3960,8 +3487,6 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3980,8 +3505,6 @@ public Builder clearXss() { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3989,13 +3512,11 @@ public Builder clearXss() { * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; */ public com.google.cloud.websecurityscanner.v1beta.Xss.Builder getXssBuilder() { - + onChanged(); return getXssFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4006,14 +3527,11 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() if (xssBuilder_ != null) { return xssBuilder_.getMessageOrBuilder(); } else { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? + com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; } } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4021,24 +3539,21 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Xss, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder, - com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> + com.google.cloud.websecurityscanner.v1beta.Xss, com.google.cloud.websecurityscanner.v1beta.Xss.Builder, com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> getXssFieldBuilder() { if (xssBuilder_ == null) { - xssBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Xss, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder, - com.google.cloud.websecurityscanner.v1beta.XssOrBuilder>( - getXss(), getParentForChildren(), isClean()); + xssBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.Xss, com.google.cloud.websecurityscanner.v1beta.Xss.Builder, com.google.cloud.websecurityscanner.v1beta.XssOrBuilder>( + getXss(), + getParentForChildren(), + isClean()); xss_ = null; } return xssBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4048,12 +3563,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Finding) private static final com.google.cloud.websecurityscanner.v1beta.Finding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.Finding(); } @@ -4062,16 +3577,16 @@ public static com.google.cloud.websecurityscanner.v1beta.Finding getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4086,4 +3601,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java new file mode 100644 index 00000000..2b906b00 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java @@ -0,0 +1,134 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class FindingAddonProto { + private FindingAddonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1beta" + + "/finding_addon.proto\022&google.cloud.webse" + + "curityscanner.v1beta\"*\n\004Form\022\022\n\naction_u" + + "ri\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibr" + + "ary\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001" + + "(\t\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021Violating" + + "Resource\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resour" + + "ce_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017" + + "parameter_names\030\001 \003(\t\"\350\001\n\021VulnerableHead" + + "ers\022Q\n\007headers\030\001 \003(\0132@.google.cloud.webs" + + "ecurityscanner.v1beta.VulnerableHeaders." + + "Header\022Y\n\017missing_headers\030\002 \003(\0132@.google" + + ".cloud.websecurityscanner.v1beta.Vulnera" + + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" + + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\231\002\n*com.goo" + + "gle.cloud.websecurityscanner.v1betaB\021Fin" + + "dingAddonProtoP\001ZXgoogle.golang.org/genp" + + "roto/googleapis/cloud/websecurityscanner" + + "/v1beta;websecurityscanner\252\002&Google.Clou" + + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" + + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" + + "loud::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor, + new java.lang.String[] { "ActionUri", "Fields", }); + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor, + new java.lang.String[] { "LibraryName", "Version", "LearnMoreUrls", }); + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor, + new java.lang.String[] { "ContentType", "ResourceUrl", }); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor, + new java.lang.String[] { "ParameterNames", }); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor, + new java.lang.String[] { "Headers", "MissingHeaders", }); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor, + new java.lang.String[] { "StackTraces", "ErrorMessage", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java similarity index 84% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java index c8c81187..e8121da0 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding.proto package com.google.cloud.websecurityscanner.v1beta; -public interface FindingOrBuilder - extends +public interface FindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.Finding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -33,13 +15,10 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -47,14 +26,12 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -62,13 +39,10 @@ public interface FindingOrBuilder
    * 
* * string finding_type = 2; - * * @return The findingType. */ java.lang.String getFindingType(); /** - * - * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -76,250 +50,202 @@ public interface FindingOrBuilder
    * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ - com.google.protobuf.ByteString getFindingTypeBytes(); + com.google.protobuf.ByteString + getFindingTypeBytes(); /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ java.lang.String getFuzzedUrl(); /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - com.google.protobuf.ByteString getFuzzedUrlBytes(); + com.google.protobuf.ByteString + getFuzzedUrlBytes(); /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ java.lang.String getReproductionUrl(); /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - com.google.protobuf.ByteString getReproductionUrlBytes(); + com.google.protobuf.ByteString + getReproductionUrlBytes(); /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ java.lang.String getFrameUrl(); /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - com.google.protobuf.ByteString getFrameUrlBytes(); + com.google.protobuf.ByteString + getFrameUrlBytes(); /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ java.lang.String getFinalUrl(); /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - com.google.protobuf.ByteString getFinalUrlBytes(); + com.google.protobuf.ByteString + getFinalUrlBytes(); /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ java.lang.String getTrackingId(); /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - com.google.protobuf.ByteString getTrackingIdBytes(); + com.google.protobuf.ByteString + getTrackingIdBytes(); /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return Whether the form field is set. */ boolean hasForm(); /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return The form. */ com.google.cloud.websecurityscanner.v1beta.Form getForm(); /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -330,32 +256,24 @@ public interface FindingOrBuilder
   com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder();
 
   /**
-   *
-   *
    * 
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ boolean hasOutdatedLibrary(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLibrary(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
@@ -365,34 +283,26 @@ public interface FindingOrBuilder com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ boolean hasViolatingResource(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolatingResource(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -400,114 +310,84 @@ public interface FindingOrBuilder
    *
    * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12;
    */
-  com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder
-      getViolatingResourceOrBuilder();
+  com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ boolean hasVulnerableHeaders(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerableHeaders(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ boolean hasVulnerableParameters(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulnerableParameters(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return Whether the xss field is set. */ boolean hasXss(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return The xss. */ com.google.cloud.websecurityscanner.v1beta.Xss getXss(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java new file mode 100644 index 00000000..f5d93a07 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/finding.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class FindingProto { + private FindingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/websecurityscanner/v1beta" + + "/finding.proto\022&google.cloud.websecurity" + + "scanner.v1beta\032\031google/api/resource.prot" + + "o\032:google/cloud/websecurityscanner/v1bet" + + "a/finding_addon.proto\"\251\006\n\007Finding\022\014\n\004nam" + + "e\030\001 \001(\t\022\024\n\014finding_type\030\002 \001(\t\022\023\n\013http_me" + + "thod\030\003 \001(\t\022\022\n\nfuzzed_url\030\004 \001(\t\022\014\n\004body\030\005" + + " \001(\t\022\023\n\013description\030\006 \001(\t\022\030\n\020reproductio" + + "n_url\030\007 \001(\t\022\021\n\tframe_url\030\010 \001(\t\022\021\n\tfinal_" + + "url\030\t \001(\t\022\023\n\013tracking_id\030\n \001(\t\022:\n\004form\030\020" + + " \001(\0132,.google.cloud.websecurityscanner.v" + + "1beta.Form\022Q\n\020outdated_library\030\013 \001(\01327.g" + + "oogle.cloud.websecurityscanner.v1beta.Ou" + + "tdatedLibrary\022U\n\022violating_resource\030\014 \001(" + + "\01329.google.cloud.websecurityscanner.v1be" + + "ta.ViolatingResource\022U\n\022vulnerable_heade" + + "rs\030\017 \001(\01329.google.cloud.websecurityscann" + + "er.v1beta.VulnerableHeaders\022[\n\025vulnerabl" + + "e_parameters\030\r \001(\0132<.google.cloud.websec" + + "urityscanner.v1beta.VulnerableParameters" + + "\0228\n\003xss\030\016 \001(\0132+.google.cloud.websecurity" + + "scanner.v1beta.Xss:\204\001\352A\200\001\n)websecuritysc" + + "anner.googleapis.com/Finding\022Sprojects/{" + + "project}/scanConfigs/{scan_config}/scanR" + + "uns/{scan_run}/findings/{finding}B\224\002\n*co" + + "m.google.cloud.websecurityscanner.v1beta" + + "B\014FindingProtoP\001ZXgoogle.golang.org/genp" + + "roto/googleapis/cloud/websecurityscanner" + + "/v1beta;websecurityscanner\252\002&Google.Clou" + + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" + + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" + + "loud::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor, + new java.lang.String[] { "Name", "FindingType", "HttpMethod", "FuzzedUrl", "Body", "Description", "ReproductionUrl", "FrameUrl", "FinalUrl", "TrackingId", "Form", "OutdatedLibrary", "ViolatingResource", "VulnerableHeaders", "VulnerableParameters", "Xss", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java index 40ea677b..f333459c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A FindingTypeStats resource represents stats regarding a specific FindingType
  * of Findings under a given ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.FindingTypeStats}
  */
-public final class FindingTypeStats extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FindingTypeStats extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.FindingTypeStats)
     FindingTypeStatsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FindingTypeStats.newBuilder() to construct.
   private FindingTypeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FindingTypeStats() {
     findingType_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FindingTypeStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FindingTypeStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private FindingTypeStats(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              findingType_ = s;
-              break;
-            }
-          case 16:
-            {
-              findingCount_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            findingType_ = s;
+            break;
+          }
+          case 16: {
+
+            findingCount_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,39 +79,34 @@ private FindingTypeStats(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class,
-            com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
   }
 
   public static final int FINDING_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object findingType_;
   /**
-   *
-   *
    * 
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The findingType. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** - * - * *
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -171,14 +148,11 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_; /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -187,7 +161,6 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, findingType_); } @@ -219,7 +193,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, findingType_); } if (findingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, findingCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,16 +204,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.FindingTypeStats)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats other = - (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) obj; + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats other = (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) obj; - if (!getFindingType().equals(other.getFindingType())) return false; - if (getFindingCount() != other.getFindingCount()) return false; + if (!getFindingType() + .equals(other.getFindingType())) return false; + if (getFindingCount() + != other.getFindingCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,104 +236,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A FindingTypeStats resource represents stats regarding a specific FindingType
    * of Findings under a given ScanRun.
@@ -365,23 +333,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.FindingTypeStats}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.FindingTypeStats)
       com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class,
-              com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.newBuilder()
@@ -389,15 +355,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -409,9 +376,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
@@ -430,8 +397,7 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.FindingTypeStats result =
-          new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(this);
+      com.google.cloud.websecurityscanner.v1beta.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(this);
       result.findingType_ = findingType_;
       result.findingCount_ = findingCount_;
       onBuilt();
@@ -442,39 +408,38 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.FindingTypeStats)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -482,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()) return this;
       if (!other.getFindingType().isEmpty()) {
         findingType_ = other.findingType_;
         onChanged();
@@ -510,8 +474,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -523,20 +486,18 @@ public Builder mergeFrom(
 
     private java.lang.Object findingType_ = "";
     /**
-     *
-     *
      * 
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -545,21 +506,20 @@ public java.lang.String getFindingType() { } } /** - * - * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -567,76 +527,66 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } } /** - * - * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(java.lang.String value) { + public Builder setFindingType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; } - private int findingCount_; + private int findingCount_ ; /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -644,43 +594,37 @@ public int getFindingCount() { return findingCount_; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @param value The findingCount to set. * @return This builder for chaining. */ public Builder setFindingCount(int value) { - + findingCount_ = value; onChanged(); return this; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return This builder for chaining. */ public Builder clearFindingCount() { - + findingCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -690,12 +634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.FindingTypeStats) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.FindingTypeStats) private static final com.google.cloud.websecurityscanner.v1beta.FindingTypeStats DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(); } @@ -704,16 +648,16 @@ public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindingTypeStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingTypeStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FindingTypeStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,4 +672,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java similarity index 54% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java index 1021b9f0..b78eb348 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java @@ -1,62 +1,38 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1beta; -public interface FindingTypeStatsOrBuilder - extends +public interface FindingTypeStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.FindingTypeStats) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The findingType. */ java.lang.String getFindingType(); /** - * - * *
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ - com.google.protobuf.ByteString getFindingTypeBytes(); + com.google.protobuf.ByteString + getFindingTypeBytes(); /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ int getFindingCount(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java new file mode 100644 index 00000000..61295590 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class FindingTypeStatsProto { + private FindingTypeStatsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1beta" + + "/finding_type_stats.proto\022&google.cloud." + + "websecurityscanner.v1beta\"?\n\020FindingType" + + "Stats\022\024\n\014finding_type\030\001 \001(\t\022\025\n\rfinding_c" + + "ount\030\002 \001(\005B\235\002\n*com.google.cloud.websecur" + + "ityscanner.v1betaB\025FindingTypeStatsProto" + + "P\001ZXgoogle.golang.org/genproto/googleapi" + + "s/cloud/websecurityscanner/v1beta;websec" + + "urityscanner\252\002&Google.Cloud.WebSecurityS" + + "canner.V1Beta\312\002&Google\\Cloud\\WebSecurity" + + "Scanner\\V1beta\352\002)Google::Cloud::WebSecur" + + "ityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor, + new java.lang.String[] { "FindingType", "FindingCount", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java index 5b578613..d614a420 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * ! Information about a vulnerability with an HTML.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Form} */ -public final class Form extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Form extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.Form) FormOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Form.newBuilder() to construct. private Form(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Form() { actionUri_ = ""; fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private Form() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Form(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Form( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private Form( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - actionUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add(s); - break; + actionUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + fields_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private Form( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = fields_.getUnmodifiableView(); @@ -112,33 +94,27 @@ private Form( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Form.class, - com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Form.class, com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); } public static final int ACTION_URI_FIELD_NUMBER = 1; private volatile java.lang.Object actionUri_; /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The actionUri. */ @java.lang.Override @@ -147,29 +123,29 @@ public java.lang.String getActionUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; } } /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ @java.lang.Override - public com.google.protobuf.ByteString getActionUriBytes() { + public com.google.protobuf.ByteString + getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionUri_ = b; return b; } else { @@ -180,42 +156,34 @@ public com.google.protobuf.ByteString getActionUriBytes() { public static final int FIELDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList fields_; /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_; } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -223,23 +191,20 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionUri_); } @@ -286,16 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.Form)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.Form other = - (com.google.cloud.websecurityscanner.v1beta.Form) obj; + com.google.cloud.websecurityscanner.v1beta.Form other = (com.google.cloud.websecurityscanner.v1beta.Form) obj; - if (!getActionUri().equals(other.getActionUri())) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getActionUri() + .equals(other.getActionUri())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,127 +285,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.Form parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.Form parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.Form prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ! Information about a vulnerability with an HTML.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Form} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.Form) com.google.cloud.websecurityscanner.v1beta.FormOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Form.class, - com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Form.class, com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.Form.newBuilder() @@ -446,15 +404,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; } @java.lang.Override @@ -487,8 +446,7 @@ public com.google.cloud.websecurityscanner.v1beta.Form build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Form buildPartial() { - com.google.cloud.websecurityscanner.v1beta.Form result = - new com.google.cloud.websecurityscanner.v1beta.Form(this); + com.google.cloud.websecurityscanner.v1beta.Form result = new com.google.cloud.websecurityscanner.v1beta.Form(this); int from_bitField0_ = bitField0_; result.actionUri_ = actionUri_; if (((bitField0_ & 0x00000001) != 0)) { @@ -504,39 +462,38 @@ public com.google.cloud.websecurityscanner.v1beta.Form buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.Form) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Form) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Form)other); } else { super.mergeFrom(other); return this; @@ -544,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.Form other) { - if (other == com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) return this; if (!other.getActionUri().isEmpty()) { actionUri_ = other.actionUri_; onChanged(); @@ -588,25 +544,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object actionUri_ = ""; /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return The actionUri. */ public java.lang.String getActionUri() { java.lang.Object ref = actionUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; @@ -615,21 +568,20 @@ public java.lang.String getActionUri() { } } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ - public com.google.protobuf.ByteString getActionUriBytes() { + public com.google.protobuf.ByteString + getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionUri_ = b; return b; } else { @@ -637,112 +589,95 @@ public com.google.protobuf.ByteString getActionUriBytes() { } } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @param value The actionUri to set. * @return This builder for chaining. */ - public Builder setActionUri(java.lang.String value) { + public Builder setActionUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionUri_ = value; onChanged(); return this; } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return This builder for chaining. */ public Builder clearActionUri() { - + actionUri_ = getDefaultInstance().getActionUri(); onChanged(); return this; } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @param value The bytes for actionUri to set. * @return This builder for chaining. */ - public Builder setActionUriBytes(com.google.protobuf.ByteString value) { + public Builder setActionUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList fields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_.getUnmodifiableView(); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -750,90 +685,80 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index to set the value at. * @param value The fields to set. * @return This builder for chaining. */ - public Builder setFields(int index, java.lang.String value) { + public Builder setFields( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param value The fields to add. * @return This builder for chaining. */ - public Builder addFields(java.lang.String value) { + public Builder addFields( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param values The fields to add. * @return This builder for chaining. */ - public Builder addAllFields(java.lang.Iterable values) { + public Builder addAllFields( + java.lang.Iterable values) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return This builder for chaining. */ public Builder clearFields() { @@ -843,30 +768,28 @@ public Builder clearFields() { return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param value The bytes of the fields to add. * @return This builder for chaining. */ - public Builder addFieldsBytes(com.google.protobuf.ByteString value) { + public Builder addFieldsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.Form) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Form) private static final com.google.cloud.websecurityscanner.v1beta.Form DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.Form(); } @@ -890,16 +813,16 @@ public static com.google.cloud.websecurityscanner.v1beta.Form getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Form parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Form(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Form parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Form(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java index 033698c6..991f84ae 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java @@ -1,101 +1,70 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface FormOrBuilder - extends +public interface FormOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.Form) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The actionUri. */ java.lang.String getActionUri(); /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ - com.google.protobuf.ByteString getActionUriBytes(); + com.google.protobuf.ByteString + getActionUriBytes(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return The count of fields. */ int getFieldsCount(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ java.lang.String getFields(int index); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - com.google.protobuf.ByteString getFieldsBytes(int index); + com.google.protobuf.ByteString + getFieldsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java index 9c58abb6..19efd738 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `GetFinding` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetFindingRequest} */ -public final class GetFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.GetFindingRequest) GetFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFindingRequest.newBuilder() to construct. private GetFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFindingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetFindingRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.GetFindingRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest other = - (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) obj; + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest other = (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetFinding` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.GetFindingRequest) com.google.cloud.websecurityscanner.v1beta.GetFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result = - new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(this); + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -519,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.GetFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetFindingRequest) - private static final com.google.cloud.websecurityscanner.v1beta.GetFindingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.GetFindingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(); } @@ -643,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java new file mode 100644 index 00000000..82d82324 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface GetFindingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetFindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java index 2801eb0b..ad9f1629 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `GetScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanConfigRequest} */ -public final class GetScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) GetScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanConfigRequest.newBuilder() to construct. private GetScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..51da9ac4 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface GetScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java index b85b8769..f7ed60f3 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `GetScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanRunRequest} */ -public final class GetScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) GetScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanRunRequest.newBuilder() to construct. private GetScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest other = - (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest other = (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) com.google.cloud.websecurityscanner.v1beta.GetScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result = - new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(this); + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -519,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(); } @@ -643,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java new file mode 100644 index 00000000..a2400447 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface GetScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java index 916c047d..32c1841c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest} */ -public final class ListCrawledUrlsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) ListCrawledUrlsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsRequest.newBuilder() to construct. private ListCrawledUrlsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListCrawledUrlsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListCrawledUrlsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -195,7 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -204,15 +173,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -220,15 +188,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -239,8 +208,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -248,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -257,7 +223,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -295,7 +261,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -305,17 +272,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,145 +308,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -491,14 +449,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance(); } @@ -513,8 +470,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest build() @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -526,50 +482,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,9 +552,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,24 +564,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -640,25 +586,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -666,73 +609,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -740,8 +670,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -749,13 +677,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -764,8 +692,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -773,14 +699,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -788,8 +715,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -797,22 +722,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -820,18 +743,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -839,25 +759,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -865,7 +783,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -873,8 +790,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -882,19 +797,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -902,18 +814,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -923,32 +834,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -960,8 +869,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java index 97458224..765f81fc 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListCrawledUrlsRequestOrBuilder - extends +public interface ListCrawledUrlsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -66,13 +39,10 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -80,14 +50,12 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -95,7 +63,6 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java index 6f82cec4..2866ede9 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse} */ -public final class ListCrawledUrlsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) ListCrawledUrlsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsResponse.newBuilder() to construct. private ListCrawledUrlsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsResponse() { crawledUrls_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListCrawledUrlsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl>(); - mutable_bitField0_ |= 0x00000001; - } - crawledUrls_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crawledUrls_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + crawledUrls_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListCrawledUrlsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -116,27 +94,22 @@ private ListCrawledUrlsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); } public static final int CRAWLED_URLS_FIELD_NUMBER = 1; private java.util.List crawledUrls_; /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List - getCrawledUrlsList() { + public java.util.List getCrawledUrlsList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -158,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCrawledUrlsOrBuilderList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -176,8 +144,6 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -189,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -206,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < crawledUrls_.size(); i++) { output.writeMessage(1, crawledUrls_.get(i)); } @@ -284,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < crawledUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, crawledUrls_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, crawledUrls_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) obj; - if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCrawledUrlsList() + .equals(other.getCrawledUrlsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCrawledUrlsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.getDefaultInstance(); } @java.lang.Override @@ -509,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse(this); int from_bitField0_ = bitField0_; if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -530,51 +478,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.getDefaultInstance()) return this; if (crawledUrlsBuilder_ == null) { if (!other.crawledUrls_.isEmpty()) { if (crawledUrls_.isEmpty()) { @@ -593,10 +536,9 @@ public Builder mergeFrom( crawledUrlsBuilder_ = null; crawledUrls_ = other.crawledUrls_; bitField0_ = (bitField0_ & ~0x00000001); - crawledUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCrawledUrlsFieldBuilder() - : null; + crawledUrlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCrawledUrlsFieldBuilder() : null; } else { crawledUrlsBuilder_.addAllMessages(other.crawledUrls_); } @@ -625,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List crawledUrls_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCrawledUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList( - crawledUrls_); + crawledUrls_ = new java.util.ArrayList(crawledUrls_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl, - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> - crawledUrlsBuilder_; + com.google.cloud.websecurityscanner.v1beta.CrawledUrl, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> crawledUrlsBuilder_; /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsList() { + public java.util.List getCrawledUrlsList() { if (crawledUrlsBuilder_ == null) { return java.util.Collections.unmodifiableList(crawledUrls_); } else { @@ -675,8 +605,6 @@ private void ensureCrawledUrlsIsMutable() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -691,8 +619,6 @@ public int getCrawledUrlsCount() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -707,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -730,8 +654,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -750,8 +672,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -772,8 +692,6 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1beta.Crawled return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -795,8 +713,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -815,8 +731,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -835,8 +749,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -844,11 +756,11 @@ public Builder addCrawledUrls( * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ public Builder addAllCrawledUrls( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (crawledUrlsBuilder_ == null) { ensureCrawledUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crawledUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, crawledUrls_); onChanged(); } else { crawledUrlsBuilder_.addAllMessages(values); @@ -856,8 +768,6 @@ public Builder addAllCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -875,8 +785,6 @@ public Builder clearCrawledUrls() { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -894,8 +802,6 @@ public Builder removeCrawledUrls(int index) { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -907,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder getCrawledU return getCrawledUrlsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -918,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder getCrawledU public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( int index) { if (crawledUrlsBuilder_ == null) { - return crawledUrls_.get(index); - } else { + return crawledUrls_.get(index); } else { return crawledUrlsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsOrBuilderList() { + public java.util.List + getCrawledUrlsOrBuilderList() { if (crawledUrlsBuilder_ != null) { return crawledUrlsBuilder_.getMessageOrBuilderList(); } else { @@ -941,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -950,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledUrlsBuilder() { - return getCrawledUrlsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -964,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledU */ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledUrlsBuilder( int index) { - return getCrawledUrlsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsBuilderList() { + public java.util.List + getCrawledUrlsBuilderList() { return getCrawledUrlsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl, - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> + com.google.cloud.websecurityscanner.v1beta.CrawledUrl, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> getCrawledUrlsFieldBuilder() { if (crawledUrlsBuilder_ == null) { - crawledUrlsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl, - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder>( - crawledUrls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + crawledUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.CrawledUrl, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder>( + crawledUrls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); crawledUrls_ = null; } return crawledUrlsBuilder_; @@ -1001,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledU private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1024,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java index 4ff47dbe..0f79126a 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListCrawledUrlsResponseOrBuilder - extends +public interface ListCrawledUrlsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - java.util.List getCrawledUrlsList(); + java.util.List + getCrawledUrlsList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -44,8 +25,6 @@ public interface ListCrawledUrlsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int index); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -54,51 +33,43 @@ public interface ListCrawledUrlsResponseOrBuilder */ int getCrawledUrlsCount(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - java.util.List + java.util.List getCrawledUrlsOrBuilderList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawledUrlsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java similarity index 63% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java index bdac7a6d..e2b40a30 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest} */ -public final class ListFindingTypeStatsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) ListFindingTypeStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsRequest.newBuilder() to construct. private ListFindingTypeStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ListFindingTypeStatsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private ListFindingTypeStatsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,145 +208,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,22 +345,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest build() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = - buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -407,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest bu @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -418,51 +376,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -486,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -500,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -526,25 +473,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -552,80 +496,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -635,32 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -672,8 +601,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 00000000..dc0b39df --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface ListFindingTypeStatsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java index 230bd82f..37f7cd12 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse} */ -public final class ListFindingTypeStatsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) ListFindingTypeStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsResponse.newBuilder() to construct. private ListFindingTypeStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsResponse() { findingTypeStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private ListFindingTypeStatsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats>(); - mutable_bitField0_ |= 0x00000001; - } - findingTypeStats_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findingTypeStats_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + findingTypeStats_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private ListFindingTypeStatsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -108,103 +87,80 @@ private ListFindingTypeStatsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder.class); } public static final int FINDING_TYPE_STATS_FIELD_NUMBER = 1; - private java.util.List - findingTypeStats_; + private java.util.List findingTypeStats_; /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> + public java.util.List getFindingTypeStatsOrBuilderList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override public int getFindingTypeStatsCount() { return findingTypeStats_.size(); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats( - int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats(int index) { return findingTypeStats_.get(index); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { return findingTypeStats_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } @@ -230,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findingTypeStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findingTypeStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -240,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) obj; - if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; + if (!getFindingTypeStatsList() + .equals(other.getFindingTypeStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -270,148 +228,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder - .class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingTypeStatsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -425,22 +370,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse build() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = - buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -449,8 +391,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse b @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(this); int from_bitField0_ = bitField0_; if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -469,52 +410,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) other); + if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) { + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.getDefaultInstance()) return this; if (findingTypeStatsBuilder_ == null) { if (!other.findingTypeStats_.isEmpty()) { if (findingTypeStats_.isEmpty()) { @@ -533,10 +468,9 @@ public Builder mergeFrom( findingTypeStatsBuilder_ = null; findingTypeStats_ = other.findingTypeStats_; bitField0_ = (bitField0_ & ~0x00000001); - findingTypeStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingTypeStatsFieldBuilder() - : null; + findingTypeStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingTypeStatsFieldBuilder() : null; } else { findingTypeStatsBuilder_.addAllMessages(other.findingTypeStats_); } @@ -561,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -572,40 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - findingTypeStats_ = java.util.Collections.emptyList(); - + private java.util.List findingTypeStats_ = + java.util.Collections.emptyList(); private void ensureFindingTypeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList( - findingTypeStats_); + findingTypeStats_ = new java.util.ArrayList(findingTypeStats_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> - findingTypeStatsBuilder_; + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> findingTypeStatsBuilder_; /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { if (findingTypeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(findingTypeStats_); } else { @@ -613,15 +533,11 @@ private void ensureFindingTypeStatsIsMutable() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public int getFindingTypeStatsCount() { if (findingTypeStatsBuilder_ == null) { @@ -631,18 +547,13 @@ public int getFindingTypeStatsCount() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats( - int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { return findingTypeStats_.get(index); } else { @@ -650,15 +561,11 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTyp } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { @@ -675,19 +582,14 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.set(index, builderForValue.build()); @@ -698,18 +600,13 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public Builder addFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { + public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { if (findingTypeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -723,15 +620,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { @@ -748,15 +641,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { @@ -770,19 +659,14 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.add(index, builderForValue.build()); @@ -793,22 +677,18 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder addAllFindingTypeStats( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingTypeStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findingTypeStats_); onChanged(); } else { findingTypeStatsBuilder_.addAllMessages(values); @@ -816,15 +696,11 @@ public Builder addAllFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder clearFindingTypeStats() { if (findingTypeStatsBuilder_ == null) { @@ -837,15 +713,11 @@ public Builder clearFindingTypeStats() { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder removeFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -858,53 +730,39 @@ public Builder removeFindingTypeStats(int index) { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder - getFindingTypeStatsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder getFindingTypeStatsBuilder( + int index) { return getFindingTypeStatsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { if (findingTypeStatsBuilder_ == null) { - return findingTypeStats_.get(index); - } else { + return findingTypeStats_.get(index); } else { return findingTypeStatsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> - getFindingTypeStatsOrBuilderList() { + public java.util.List + getFindingTypeStatsOrBuilderList() { if (findingTypeStatsBuilder_ != null) { return findingTypeStatsBuilder_.getMessageOrBuilderList(); } else { @@ -912,67 +770,45 @@ public Builder removeFindingTypeStats(int index) { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder - addFindingTypeStatsBuilder() { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder addFindingTypeStatsBuilder() { + return getFindingTypeStatsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder - addFindingTypeStatsBuilder(int index) { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder addFindingTypeStatsBuilder( + int index) { + return getFindingTypeStatsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsBuilderList() { + public java.util.List + getFindingTypeStatsBuilderList() { return getFindingTypeStatsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> getFindingTypeStatsFieldBuilder() { if (findingTypeStatsBuilder_ == null) { - findingTypeStatsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder>( + findingTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder>( findingTypeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -981,9 +817,9 @@ public Builder removeFindingTypeStats(int index) { } return findingTypeStatsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,33 +829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,8 +864,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java index dc075064..c11e2faf 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java @@ -1,83 +1,52 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListFindingTypeStatsResponseOrBuilder - extends +public interface ListFindingTypeStatsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - java.util.List + java.util.List getFindingTypeStatsList(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats(int index); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ int getFindingTypeStatsCount(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - java.util.List + java.util.List getFindingTypeStatsOrBuilderList(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( int index); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java index 87539f9b..8f615b49 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsRequest} */ -public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) ListFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 32: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,43 +92,36 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -157,33 +130,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -204,7 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -213,15 +181,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -230,15 +197,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -249,8 +217,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -258,7 +224,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -267,15 +232,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -283,15 +247,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -302,8 +267,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -311,7 +274,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -320,7 +282,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -364,7 +326,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -374,18 +337,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,127 +377,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) com.google.cloud.websecurityscanner.v1beta.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.newBuilder() @@ -539,15 +495,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -563,14 +520,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance(); } @@ -585,8 +541,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageToken_ = pageToken_; @@ -599,39 +554,38 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -639,9 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -676,9 +628,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -690,24 +640,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -716,25 +662,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -742,73 +685,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -816,8 +746,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -826,13 +754,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -841,8 +769,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -851,14 +777,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -866,8 +793,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -876,22 +801,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -900,18 +823,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -920,16 +840,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -937,8 +857,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -946,13 +864,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -961,8 +879,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -970,14 +886,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -985,8 +902,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -994,22 +909,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1017,18 +930,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1036,25 +946,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1062,7 +970,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1070,8 +977,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1079,19 +984,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1099,18 +1001,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1120,32 +1021,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1157,8 +1056,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java index c1bec864..975732f5 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListFindingsRequestOrBuilder - extends +public interface ListFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -67,13 +40,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -82,14 +52,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -97,13 +65,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -111,14 +76,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -126,7 +89,6 @@ public interface ListFindingsRequestOrBuilder
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java index f0e98b1d..69d4457c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsResponse} */ -public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) ListFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.Finding.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + findings_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.Finding.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -115,27 +94,22 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** - * - * *
    * The list of Findings returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getFin return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getFin * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -174,8 +144,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) return findings_.get(index); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) obj; - if (!getFindingsList().equals(other.getFindingsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getFindingsList() + .equals(other.getFindingsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) com.google.cloud.websecurityscanner.v1beta.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,50 +478,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance()) return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -587,10 +536,9 @@ public Builder mergeFrom( findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingsFieldBuilder() - : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingsFieldBuilder() : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -619,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(findings_); + findings_ = new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Finding, - com.google.cloud.websecurityscanner.v1beta.Finding.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> - findingsBuilder_; + com.google.cloud.websecurityscanner.v1beta.Finding, com.google.cloud.websecurityscanner.v1beta.Finding.Builder, com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> findingsBuilder_; /** - * - * *
      * The list of Findings returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getFin } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -683,8 +619,6 @@ public int getFindingsCount() { } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -722,8 +654,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -742,8 +672,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -764,8 +692,6 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1beta.Finding va return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -787,8 +713,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -807,8 +731,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -827,8 +749,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeFindings(int index) { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder getFindingsBui return getFindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder getFindingsBui public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOrBuilder( int index) { if (findingsBuilder_ == null) { - return findings_.get(index); - } else { + return findings_.get(index); } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBui */ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBuilder( int index) { - return getFindingsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Finding, - com.google.cloud.websecurityscanner.v1beta.Finding.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> + com.google.cloud.websecurityscanner.v1beta.Finding, com.google.cloud.websecurityscanner.v1beta.Finding.Builder, com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Finding, - com.google.cloud.websecurityscanner.v1beta.Finding.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder>( - findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.Finding, com.google.cloud.websecurityscanner.v1beta.Finding.Builder, com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder>( + findings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); findings_ = null; } return findingsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java index 9f51c883..731383be 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListFindingsResponseOrBuilder - extends +public interface ListFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - java.util.List getFindingsList(); + java.util.List + getFindingsList(); /** - * - * *
    * The list of Findings returned.
    * 
@@ -44,8 +25,6 @@ public interface ListFindingsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index); /** - * - * *
    * The list of Findings returned.
    * 
@@ -54,51 +33,43 @@ public interface ListFindingsResponseOrBuilder */ int getFindingsCount(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java index f80cdd78..d049d2cf 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest} */ -public final class ListScanConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) ListScanConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsRequest.newBuilder() to construct. private ListScanConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanConfigsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListScanConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -202,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -218,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,145 +306,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -489,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance(); } @@ -511,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest build() @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -524,50 +480,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -598,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -637,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -662,70 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -733,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -742,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -757,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -766,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -781,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -790,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -813,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -832,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -858,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -866,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -875,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -895,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -916,32 +827,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -953,8 +862,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java index 1b9df87d..ba39d379 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanConfigsRequestOrBuilder - extends +public interface ListScanConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -64,13 +37,10 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -78,14 +48,12 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -93,7 +61,6 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java index 1d5891fd..3a57b0b4 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse} */ -public final class ListScanConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) ListScanConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsResponse.newBuilder() to construct. private ListScanConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsResponse() { scanConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListScanConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.ScanConfig>(); - mutable_bitField0_ |= 0x00000001; - } - scanConfigs_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanConfigs_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListScanConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -116,27 +94,22 @@ private ListScanConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); } public static final int SCAN_CONFIGS_FIELD_NUMBER = 1; private java.util.List scanConfigs_; /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List - getScanConfigsList() { + public java.util.List getScanConfigsList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -158,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanConfigsOrBuilderList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -176,8 +144,6 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -189,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -206,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanConfigs_.size(); i++) { output.writeMessage(1, scanConfigs_.get(i)); } @@ -284,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) obj; - if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanConfigsList() + .equals(other.getScanConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.getDefaultInstance(); } @java.lang.Override @@ -509,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse(this); int from_bitField0_ = bitField0_; if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -530,51 +478,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.getDefaultInstance()) return this; if (scanConfigsBuilder_ == null) { if (!other.scanConfigs_.isEmpty()) { if (scanConfigs_.isEmpty()) { @@ -593,10 +536,9 @@ public Builder mergeFrom( scanConfigsBuilder_ = null; scanConfigs_ = other.scanConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - scanConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanConfigsFieldBuilder() - : null; + scanConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanConfigsFieldBuilder() : null; } else { scanConfigsBuilder_.addAllMessages(other.scanConfigs_); } @@ -625,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList( - scanConfigs_); + scanConfigs_ = new java.util.ArrayList(scanConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> - scanConfigsBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> scanConfigsBuilder_; /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsList() { + public java.util.List getScanConfigsList() { if (scanConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(scanConfigs_); } else { @@ -675,8 +605,6 @@ private void ensureScanConfigsIsMutable() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -691,8 +619,6 @@ public int getScanConfigsCount() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -707,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -730,8 +654,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -750,8 +672,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -772,8 +692,6 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1beta.ScanCon return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -795,8 +713,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -815,8 +731,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -835,8 +749,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -844,11 +756,11 @@ public Builder addScanConfigs( * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ public Builder addAllScanConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (scanConfigsBuilder_ == null) { ensureScanConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanConfigs_); onChanged(); } else { scanConfigsBuilder_.addAllMessages(values); @@ -856,8 +768,6 @@ public Builder addAllScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -875,8 +785,6 @@ public Builder clearScanConfigs() { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -894,8 +802,6 @@ public Builder removeScanConfigs(int index) { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -907,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf return getScanConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -918,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigsOrBuilder( int index) { if (scanConfigsBuilder_ == null) { - return scanConfigs_.get(index); - } else { + return scanConfigs_.get(index); } else { return scanConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsOrBuilderList() { + public java.util.List + getScanConfigsOrBuilderList() { if (scanConfigsBuilder_ != null) { return scanConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -941,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -950,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConfigsBuilder() { - return getScanConfigsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -964,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConf */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConfigsBuilder( int index) { - return getScanConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsBuilderList() { + public java.util.List + getScanConfigsBuilderList() { return getScanConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> getScanConfigsFieldBuilder() { if (scanConfigsBuilder_ == null) { - scanConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( - scanConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( + scanConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanConfigs_ = null; } return scanConfigsBuilder_; @@ -1001,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConf private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1024,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java index c52b947e..845e712e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanConfigsResponseOrBuilder - extends +public interface ListScanConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - java.util.List getScanConfigsList(); + java.util.List + getScanConfigsList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanConfigsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int index); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanConfigsResponseOrBuilder */ int getScanConfigsCount(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - java.util.List + java.util.List getScanConfigsOrBuilderList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java index aff0e1c0..32cb456e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsRequest} */ -public final class ListScanRunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) ListScanRunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsRequest.newBuilder() to construct. private ListScanRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanRunsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListScanRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -202,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -218,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance(); } @@ -509,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -522,39 +480,38 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest)other); } else { super.mergeFrom(other); return this; @@ -562,9 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -595,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -634,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -659,70 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -730,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -739,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -754,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -763,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -778,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -787,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -810,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -829,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -855,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -863,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -872,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -892,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,32 +827,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,8 +862,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java index d1cdde6f..a02571fa 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanRunsRequestOrBuilder - extends +public interface ListScanRunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -64,13 +37,10 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -78,14 +48,12 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -93,7 +61,6 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java index 6562b694..3186acd3 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsResponse} */ -public final class ListScanRunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) ListScanRunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsResponse.newBuilder() to construct. private ListScanRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsResponse() { scanRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListScanRunsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanRuns_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanRuns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanRuns_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListScanRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -115,27 +94,22 @@ private ListScanRunsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); } public static final int SCAN_RUNS_FIELD_NUMBER = 1; private java.util.List scanRuns_; /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getSca return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getSca * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanRunsOrBuilderList() { return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -174,8 +144,6 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) return scanRuns_.get(index); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanRuns_.size(); i++) { output.writeMessage(1, scanRuns_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) obj; - if (!getScanRunsList().equals(other.getScanRunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanRunsList() + .equals(other.getScanRunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanRunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse(this); int from_bitField0_ = bitField0_; if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,50 +478,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance()) return this; if (scanRunsBuilder_ == null) { if (!other.scanRuns_.isEmpty()) { if (scanRuns_.isEmpty()) { @@ -587,10 +536,9 @@ public Builder mergeFrom( scanRunsBuilder_ = null; scanRuns_ = other.scanRuns_; bitField0_ = (bitField0_ & ~0x00000001); - scanRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanRunsFieldBuilder() - : null; + scanRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanRunsFieldBuilder() : null; } else { scanRunsBuilder_.addAllMessages(other.scanRuns_); } @@ -619,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanRuns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(scanRuns_); + scanRuns_ = new java.util.ArrayList(scanRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> - scanRunsBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> scanRunsBuilder_; /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getSca } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -683,8 +619,6 @@ public int getScanRunsCount() { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -722,8 +654,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -742,8 +672,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -764,8 +692,6 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1beta.ScanRun va return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -787,8 +713,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -807,8 +731,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -827,8 +749,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllScanRuns( java.lang.Iterable values) { if (scanRunsBuilder_ == null) { ensureScanRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanRuns_); onChanged(); } else { scanRunsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearScanRuns() { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeScanRuns(int index) { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getScanRunsBui return getScanRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getScanRunsBui public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOrBuilder( int index) { if (scanRunsBuilder_ == null) { - return scanRuns_.get(index); - } else { + return scanRuns_.get(index); } else { return scanRunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsOrBuilderList() { + public java.util.List + getScanRunsOrBuilderList() { if (scanRunsBuilder_ != null) { return scanRunsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBuilder() { - return getScanRunsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBui */ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBuilder( int index) { - return getScanRunsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsBuilderList() { + public java.util.List + getScanRunsBuilderList() { return getScanRunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> getScanRunsFieldBuilder() { if (scanRunsBuilder_ == null) { - scanRunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( - scanRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( + scanRuns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanRuns_ = null; } return scanRunsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java index 3e1252bd..f84d198f 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanRunsResponseOrBuilder - extends +public interface ListScanRunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - java.util.List getScanRunsList(); + java.util.List + getScanRunsList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanRunsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanRunsResponseOrBuilder */ int getScanRunsCount(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - java.util.List + java.util.List getScanRunsOrBuilderList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java index acf0bcd4..703c5208 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information reported for an outdated library.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.OutdatedLibrary} */ -public final class OutdatedLibrary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutdatedLibrary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) OutdatedLibraryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutdatedLibrary.newBuilder() to construct. private OutdatedLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutdatedLibrary() { libraryName_ = ""; version_ = ""; @@ -45,15 +27,16 @@ private OutdatedLibrary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutdatedLibrary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutdatedLibrary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,37 +56,34 @@ private OutdatedLibrary( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - libraryName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + libraryName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - learnMoreUrls_.add(s); - break; + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + learnMoreUrls_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +91,8 @@ private OutdatedLibrary( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); @@ -120,33 +101,27 @@ private OutdatedLibrary( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); } public static final int LIBRARY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object libraryName_; /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ @java.lang.Override @@ -155,29 +130,29 @@ public java.lang.String getLibraryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; } } /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ @java.lang.Override - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -188,14 +163,11 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -204,29 +176,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -237,42 +209,34 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList learnMoreUrls_; /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_; } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -280,23 +244,20 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -349,17 +311,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary other = - (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) obj; + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary other = (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) obj; - if (!getLibraryName().equals(other.getLibraryName())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; + if (!getLibraryName() + .equals(other.getLibraryName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getLearnMoreUrlsList() + .equals(other.getLearnMoreUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -385,127 +349,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an outdated library.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.OutdatedLibrary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder() @@ -513,15 +467,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; } @java.lang.Override @@ -556,8 +511,7 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary buildPartial() { - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary result = - new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(this); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(this); int from_bitField0_ = bitField0_; result.libraryName_ = libraryName_; result.version_ = version_; @@ -574,39 +528,38 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary)other); } else { super.mergeFrom(other); return this; @@ -614,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary other) { - if (other == com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance()) return this; if (!other.getLibraryName().isEmpty()) { libraryName_ = other.libraryName_; onChanged(); @@ -653,8 +605,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,25 +614,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object libraryName_ = ""; /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The libraryName. */ public java.lang.String getLibraryName() { java.lang.Object ref = libraryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; @@ -690,21 +638,20 @@ public java.lang.String getLibraryName() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -712,61 +659,54 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryName(java.lang.String value) { + public Builder setLibraryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + libraryName_ = value; onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return This builder for chaining. */ public Builder clearLibraryName() { - + libraryName_ = getDefaultInstance().getLibraryName(); onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The bytes for libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { + public Builder setLibraryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + libraryName_ = value; onChanged(); return this; @@ -774,20 +714,18 @@ public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -796,21 +734,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -818,112 +755,95 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLearnMoreUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_.getUnmodifiableView(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -931,90 +851,80 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index to set the value at. * @param value The learnMoreUrls to set. * @return This builder for chaining. */ - public Builder setLearnMoreUrls(int index, java.lang.String value) { + public Builder setLearnMoreUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrls(java.lang.String value) { + public Builder addLearnMoreUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param values The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addAllLearnMoreUrls(java.lang.Iterable values) { + public Builder addAllLearnMoreUrls( + java.lang.Iterable values) { ensureLearnMoreUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, learnMoreUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, learnMoreUrls_); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return This builder for chaining. */ public Builder clearLearnMoreUrls() { @@ -1024,30 +934,28 @@ public Builder clearLearnMoreUrls() { return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The bytes of the learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addLearnMoreUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1057,12 +965,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) private static final com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(); } @@ -1071,16 +979,16 @@ public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutdatedLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutdatedLibrary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutdatedLibrary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1095,4 +1003,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java index a6372eec..68ad3f2f 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java @@ -1,126 +1,90 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface OutdatedLibraryOrBuilder - extends +public interface OutdatedLibraryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ java.lang.String getLibraryName(); /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - com.google.protobuf.ByteString getLibraryNameBytes(); + com.google.protobuf.ByteString + getLibraryNameBytes(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - java.util.List getLearnMoreUrlsList(); + java.util.List + getLearnMoreUrlsList(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ int getLearnMoreUrlsCount(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ java.lang.String getLearnMoreUrls(int index); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index); + com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java index 534992ec..054742f3 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_config.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A ScanConfig resource contains the configurations to launch a scan.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig} */ -public final class ScanConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScanConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig) ScanConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScanConfig.newBuilder() to construct. private ScanConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScanConfig() { name_ = ""; displayName_ = ""; @@ -50,15 +32,16 @@ private ScanConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScanConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ScanConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,151 +61,128 @@ private ScanConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + displayName_ = s; + break; + } + case 24: { + + maxQps_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + startingUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 24: - { - maxQps_ = input.readInt32(); - break; + startingUrls_.add(s); + break; + } + case 42: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder subBuilder = null; + if (authentication_ != null) { + subBuilder = authentication_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - startingUrls_.add(s); - break; + authentication_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authentication_); + authentication_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder - subBuilder = null; - if (authentication_ != null) { - subBuilder = authentication_.toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authentication_); - authentication_ = subBuilder.buildPartial(); - } - break; - } - case 48: - { - int rawValue = input.readEnum(); + break; + } + case 48: { + int rawValue = input.readEnum(); - userAgent_ = rawValue; - break; + userAgent_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - blacklistPatterns_.add(s); - break; + blacklistPatterns_.add(s); + break; + } + case 66: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder subBuilder = null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); + } + schedule_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder subBuilder = - null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - break; + break; + } + case 72: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + targetPlatforms_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 72: - { + targetPlatforms_.add(rawValue); + break; + } + case 74: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { targetPlatforms_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } targetPlatforms_.add(rawValue); - break; } - case 74: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - targetPlatforms_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - targetPlatforms_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 80: - { - int rawValue = input.readEnum(); + input.popLimit(oldLimit); + break; + } + case 80: { + int rawValue = input.readEnum(); - exportToSecurityCommandCenter_ = rawValue; - break; + exportToSecurityCommandCenter_ = rawValue; + break; + } + case 90: { + com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder subBuilder = null; + if (latestRun_ != null) { + subBuilder = latestRun_.toBuilder(); } - case 90: - { - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder subBuilder = null; - if (latestRun_ != null) { - subBuilder = latestRun_.toBuilder(); - } - latestRun_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latestRun_); - latestRun_ = subBuilder.buildPartial(); - } - - break; + latestRun_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latestRun_); + latestRun_ = subBuilder.buildPartial(); } - case 96: - { - int rawValue = input.readEnum(); - riskLevel_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 96: { + int rawValue = input.readEnum(); + + riskLevel_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -230,7 +190,8 @@ private ScanConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { startingUrls_ = startingUrls_.getUnmodifiableView(); @@ -245,35 +206,29 @@ private ScanConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); } /** - * - * *
    * Type of user agents used for scanning.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent} */ - public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { + public enum UserAgent + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -282,8 +237,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ USER_AGENT_UNSPECIFIED(0), /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -292,8 +245,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_LINUX(1), /** - * - * *
      * Chrome on Android.
      * 
@@ -302,8 +253,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_ANDROID(2), /** - * - * *
      * Safari on IPhone.
      * 
@@ -315,8 +264,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -325,8 +272,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -335,8 +280,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_LINUX_VALUE = 1; /** - * - * *
      * Chrome on Android.
      * 
@@ -345,8 +288,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_ANDROID_VALUE = 2; /** - * - * *
      * Safari on IPhone.
      * 
@@ -355,6 +296,7 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SAFARI_IPHONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -379,53 +321,50 @@ public static UserAgent valueOf(int value) { */ public static UserAgent forNumber(int value) { switch (value) { - case 0: - return USER_AGENT_UNSPECIFIED; - case 1: - return CHROME_LINUX; - case 2: - return CHROME_ANDROID; - case 3: - return SAFARI_IPHONE; - default: - return null; + case 0: return USER_AGENT_UNSPECIFIED; + case 1: return CHROME_LINUX; + case 2: return CHROME_ANDROID; + case 3: return SAFARI_IPHONE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserAgent> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserAgent findValueByNumber(int number) { + return UserAgent.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UserAgent findValueByNumber(int number) { - return UserAgent.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(0); } private static final UserAgent[] VALUES = values(); - public static UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UserAgent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -443,18 +382,15 @@ private UserAgent(int value) { } /** - * - * *
    * Cloud platforms supported by Cloud Web Security Scanner.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform} */ - public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetPlatform + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -464,8 +400,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -474,8 +408,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ APP_ENGINE(1), /** - * - * *
      * Google Compute Engine service.
      * 
@@ -487,8 +419,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -498,8 +428,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -508,8 +436,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APP_ENGINE_VALUE = 1; /** - * - * *
      * Google Compute Engine service.
      * 
@@ -518,6 +444,7 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPUTE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -542,51 +469,49 @@ public static TargetPlatform valueOf(int value) { */ public static TargetPlatform forNumber(int value) { switch (value) { - case 0: - return TARGET_PLATFORM_UNSPECIFIED; - case 1: - return APP_ENGINE; - case 2: - return COMPUTE; - default: - return null; + case 0: return TARGET_PLATFORM_UNSPECIFIED; + case 1: return APP_ENGINE; + case 2: return COMPUTE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + TargetPlatform> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetPlatform findValueByNumber(int number) { + return TargetPlatform.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetPlatform findValueByNumber(int number) { - return TargetPlatform.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(1); } private static final TargetPlatform[] VALUES = values(); - public static TargetPlatform valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetPlatform valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -604,8 +529,6 @@ private TargetPlatform(int value) { } /** - * - * *
    * Scan risk levels supported by Cloud Web Security Scanner. LOW impact
    * scanning will minimize requests with the potential to modify data. To
@@ -614,10 +537,9 @@ private TargetPlatform(int value) {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel}
    */
-  public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum {
+  public enum RiskLevel
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Use default, which is NORMAL.
      * 
@@ -626,8 +548,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ RISK_LEVEL_UNSPECIFIED(0), /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -636,8 +556,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ NORMAL(1), /** - * - * *
      * Lower impact scanning
      * 
@@ -649,8 +567,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Use default, which is NORMAL.
      * 
@@ -659,8 +575,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -669,8 +583,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NORMAL_VALUE = 1; /** - * - * *
      * Lower impact scanning
      * 
@@ -679,6 +591,7 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOW_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -703,51 +616,49 @@ public static RiskLevel valueOf(int value) { */ public static RiskLevel forNumber(int value) { switch (value) { - case 0: - return RISK_LEVEL_UNSPECIFIED; - case 1: - return NORMAL; - case 2: - return LOW; - default: - return null; + case 0: return RISK_LEVEL_UNSPECIFIED; + case 1: return NORMAL; + case 2: return LOW; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + RiskLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RiskLevel findValueByNumber(int number) { + return RiskLevel.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RiskLevel findValueByNumber(int number) { - return RiskLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() - .getEnumTypes() - .get(2); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(2); } private static final RiskLevel[] VALUES = values(); - public static RiskLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RiskLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -765,20 +676,16 @@ private RiskLevel(int value) { } /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * Protobuf enum {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter} + * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter} */ - public enum ExportToSecurityCommandCenter implements com.google.protobuf.ProtocolMessageEnum { + public enum ExportToSecurityCommandCenter + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -787,8 +694,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED(0), /** - * - * *
      * Export results of this scan to Cloud Security Command Center.
      * 
@@ -797,8 +702,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ ENABLED(1), /** - * - * *
      * Do not export results of this scan to Cloud Security Command Center.
      * 
@@ -810,8 +713,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco ; /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -820,8 +721,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Export results of this scan to Cloud Security Command Center.
      * 
@@ -830,8 +729,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * Do not export results of this scan to Cloud Security Command Center.
      * 
@@ -840,6 +737,7 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -864,14 +762,10 @@ public static ExportToSecurityCommandCenter valueOf(int value) { */ public static ExportToSecurityCommandCenter forNumber(int value) { switch (value) { - case 0: - return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; - case 1: - return ENABLED; - case 2: - return DISABLED; - default: - return null; + case 0: return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; + case 1: return ENABLED; + case 2: return DISABLED; + default: return null; } } @@ -879,31 +773,29 @@ public static ExportToSecurityCommandCenter forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExportToSecurityCommandCenter> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExportToSecurityCommandCenter findValueByNumber(int number) { + return ExportToSecurityCommandCenter.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExportToSecurityCommandCenter findValueByNumber(int number) { - return ExportToSecurityCommandCenter.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() - .getEnumTypes() - .get(3); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(3); } private static final ExportToSecurityCommandCenter[] VALUES = values(); @@ -911,7 +803,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ExportToSecurityCommandCenter valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -928,132 +821,97 @@ private ExportToSecurityCommandCenter(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter) } - public interface AuthenticationOrBuilder - extends + public interface AuthenticationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ boolean hasGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getGoogleAccount(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ boolean hasCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getCustomAccount(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder(); - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.AuthenticationCase - getAuthenticationCase(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); } /** - * - * *
    * Scan authentication configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication} */ - public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Authentication extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) AuthenticationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Authentication() {} + private Authentication() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Authentication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Authentication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1072,67 +930,41 @@ private Authentication( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; + case 10: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder subBuilder = null; + if (authenticationCase_ == 1) { + subBuilder = ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_).toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 2; - break; + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_); + authentication_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authenticationCase_ = 1; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder subBuilder = null; + if (authenticationCase_ == 2) { + subBuilder = ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_).toBuilder(); + } + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); + authentication_ = subBuilder.buildPartial(); } + authenticationCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1140,109 +972,88 @@ private Authentication( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); } - public interface GoogleAccountOrBuilder - extends + public interface GoogleAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } /** - * - * *
      * Describes authentication configuration that uses a Google account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} */ - public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GoogleAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) GoogleAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GoogleAccount.newBuilder() to construct. private GoogleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GoogleAccount() { username_ = ""; password_ = ""; @@ -1250,15 +1061,16 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GoogleAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GoogleAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1277,27 +1089,25 @@ private GoogleAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1305,42 +1115,34 @@ private GoogleAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -1349,29 +1151,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1382,17 +1184,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -1401,32 +1198,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1435,7 +1230,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1447,7 +1241,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -1477,19 +1272,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1510,116 +1303,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1629,53 +1394,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a Google account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1687,23 +1443,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - build() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount build() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1711,12 +1463,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount(this); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount buildPartial() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -1727,57 +1475,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -1801,14 +1538,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1820,20 +1554,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1842,21 +1574,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1864,61 +1595,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1926,23 +1650,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1951,24 +1671,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1976,75 +1693,61 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2057,36 +1760,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2098,118 +1795,94 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomAccountOrBuilder - extends + public interface CustomAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ java.lang.String getLoginUrl(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ - com.google.protobuf.ByteString getLoginUrlBytes(); + com.google.protobuf.ByteString + getLoginUrlBytes(); } /** - * - * *
      * Describes authentication configuration that uses a custom account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} */ - public static final class CustomAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CustomAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) CustomAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAccount.newBuilder() to construct. private CustomAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomAccount() { username_ = ""; password_ = ""; @@ -2218,15 +1891,16 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CustomAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2245,34 +1919,31 @@ private CustomAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - loginUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + loginUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2280,42 +1951,34 @@ private CustomAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -2324,29 +1987,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2357,17 +2020,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -2376,32 +2034,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2412,14 +2068,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int LOGIN_URL_FIELD_NUMBER = 3; private volatile java.lang.Object loginUrl_; /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ @java.lang.Override @@ -2428,29 +2081,29 @@ public java.lang.String getLoginUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; } } /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2459,7 +2112,6 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2471,7 +2123,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2507,20 +2160,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getLoginUrl().equals(other.getLoginUrl())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getLoginUrl() + .equals(other.getLoginUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2543,116 +2195,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2662,53 +2286,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a custom account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2722,23 +2337,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - build() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount build() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2746,12 +2357,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount(this); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount buildPartial() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount(this); result.username_ = username_; result.password_ = password_; result.loginUrl_ = loginUrl_; @@ -2763,57 +2370,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -2841,14 +2437,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2860,20 +2453,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2882,21 +2473,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2904,61 +2494,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2966,23 +2549,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2991,24 +2570,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -3016,70 +2592,57 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -3087,20 +2650,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object loginUrl_ = ""; /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; @@ -3109,88 +2670,79 @@ public java.lang.String getLoginUrl() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** - * - * + /** *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrl(java.lang.String value) { + public Builder setLoginUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + loginUrl_ = value; onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLoginUrl() { - + loginUrl_ = getDefaultInstance().getLoginUrl(); onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { + public Builder setLoginUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loginUrl_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3203,36 +2755,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3244,24 +2790,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int authenticationCase_ = 0; private java.lang.Object authentication_; - public enum AuthenticationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), AUTHENTICATION_NOT_SET(0); private final int value; - private AuthenticationCase(int value) { this.value = value; } @@ -3277,38 +2820,30 @@ public static AuthenticationCase valueOf(int value) { public static AuthenticationCase forNumber(int value) { switch (value) { - case 1: - return GOOGLE_ACCOUNT; - case 2: - return CUSTOM_ACCOUNT; - case 0: - return AUTHENTICATION_NOT_SET; - default: - return null; + case 1: return GOOGLE_ACCOUNT; + case 2: return CUSTOM_ACCOUNT; + case 0: return AUTHENTICATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public static final int GOOGLE_ACCOUNT_FIELD_NUMBER = 1; /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -3316,63 +2851,42 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } public static final int CUSTOM_ACCOUNT_FIELD_NUMBER = 2; /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -3380,53 +2894,36 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3438,18 +2935,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (authenticationCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - authentication_); + output.writeMessage(1, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - authentication_); + output.writeMessage(2, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); } unknownFields.writeTo(output); } @@ -3461,18 +2953,12 @@ public int getSerializedSize() { size = 0; if (authenticationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3482,21 +2968,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) obj; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 1: - if (!getGoogleAccount().equals(other.getGoogleAccount())) return false; + if (!getGoogleAccount() + .equals(other.getGoogleAccount())) return false; break; case 2: - if (!getCustomAccount().equals(other.getCustomAccount())) return false; + if (!getCustomAccount() + .equals(other.getCustomAccount())) return false; break; case 0: default: @@ -3530,95 +3017,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3628,49 +3107,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan authentication configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3680,22 +3154,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication build() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = - buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3704,8 +3175,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication buil @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(this); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(this); if (authenticationCase_ == 1) { if (googleAccountBuilder_ == null) { result.authentication_ = authentication_; @@ -3729,68 +3199,58 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance()) return this; switch (other.getAuthenticationCase()) { - case GOOGLE_ACCOUNT: - { - mergeGoogleAccount(other.getGoogleAccount()); - break; - } - case CUSTOM_ACCOUNT: - { - mergeCustomAccount(other.getCustomAccount()); - break; - } - case AUTHENTICATION_NOT_SET: - { - break; - } + case GOOGLE_ACCOUNT: { + mergeGoogleAccount(other.getGoogleAccount()); + break; + } + case CUSTOM_ACCOUNT: { + mergeCustomAccount(other.getCustomAccount()); + break; + } + case AUTHENTICATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3811,9 +3271,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3822,12 +3280,12 @@ public Builder mergeFrom( } return this; } - private int authenticationCase_ = 0; private java.lang.Object authentication_; - - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public Builder clearAuthentication() { @@ -3837,24 +3295,15 @@ public Builder clearAuthentication() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder> - googleAccountBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder> googleAccountBuilder_; /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -3862,51 +3311,35 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } else { if (authenticationCase_ == 1) { return googleAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - value) { + public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3920,19 +3353,14 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3943,32 +3371,18 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder mergeGoogleAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - value) { + public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { - if (authenticationCase_ == 1 - && authentication_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount.getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 1 && + authentication_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -3984,15 +3398,11 @@ public Builder mergeGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -4011,111 +3421,67 @@ public Builder clearGoogleAccount() { return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder - getGoogleAccountBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { return googleAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder> getGoogleAccountFieldBuilder() { if (googleAccountBuilder_ == null) { if (!(authenticationCase_ == 1)) { - authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } - googleAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_, + googleAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 1; - onChanged(); - ; + onChanged();; return googleAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder> - customAccountBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder> customAccountBuilder_; /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -4123,51 +3489,35 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (customAccountBuilder_ == null) { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } else { if (authenticationCase_ == 2) { return customAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - value) { + public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4181,19 +3531,14 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder builderForValue) { if (customAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -4204,32 +3549,18 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder mergeCustomAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - value) { + public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { - if (authenticationCase_ == 2 - && authentication_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount.getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 2 && + authentication_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -4245,15 +3576,11 @@ public Builder mergeCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder clearCustomAccount() { if (customAccountBuilder_ == null) { @@ -4272,93 +3599,58 @@ public Builder clearCustomAccount() { return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder - getCustomAccountBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder getCustomAccountBuilder() { return getCustomAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if ((authenticationCase_ == 2) && (customAccountBuilder_ != null)) { return customAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder> getCustomAccountFieldBuilder() { if (customAccountBuilder_ == null) { if (!(authenticationCase_ == 2)) { - authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } - customAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_, + customAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 2; - onChanged(); - ; + onChanged();; return customAccountBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4371,32 +3663,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4408,20 +3698,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ScheduleOrBuilder - extends + public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4430,13 +3717,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4445,13 +3729,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4464,50 +3745,46 @@ public interface ScheduleOrBuilder
     com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ int getIntervalDurationDays(); } /** - * - * *
    * Scan schedule configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule} */ - public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) ScheduleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Schedule() {} + private Schedule() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4526,33 +3803,31 @@ private Schedule( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); } - case 16: - { - intervalDurationDays_ = input.readInt32(); - break; + scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + intervalDurationDays_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4560,33 +3835,29 @@ private Schedule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); } public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp scheduleTime_; /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4595,7 +3866,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -4603,8 +3873,6 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4613,18 +3881,13 @@ public boolean hasScheduleTime() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4642,14 +3905,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_;
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -4658,7 +3918,6 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4670,7 +3929,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scheduleTime_ != null) { output.writeMessage(1, getScheduleTime()); } @@ -4687,10 +3947,12 @@ public int getSerializedSize() { size = 0; if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getScheduleTime()); } if (intervalDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, intervalDurationDays_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4700,19 +3962,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) obj; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; + if (!getScheduleTime() + .equals(other.getScheduleTime())) return false; } - if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; + if (getIntervalDurationDays() + != other.getIntervalDurationDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4736,94 +3999,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4833,32 +4089,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan schedule configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder() @@ -4866,15 +4117,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4890,14 +4142,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance(); } @@ -4912,8 +4163,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(this); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(this); if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; } else { @@ -4928,52 +4178,46 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance()) return this; if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } @@ -4999,9 +4243,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5013,13 +4255,8 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5028,15 +4265,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5045,21 +4279,16 @@ public boolean hasScheduleTime() {
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5083,8 +4312,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5094,7 +4321,8 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp schedule_time = 1;
        */
-      public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setScheduleTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (scheduleTimeBuilder_ == null) {
           scheduleTime_ = builderForValue.build();
           onChanged();
@@ -5105,8 +4333,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5120,9 +4346,7 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
           if (scheduleTime_ != null) {
             scheduleTime_ =
-                com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial();
           } else {
             scheduleTime_ = value;
           }
@@ -5134,8 +4358,6 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5157,8 +4379,6 @@ public Builder clearScheduleTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5169,13 +4389,11 @@ public Builder clearScheduleTime() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
-
+        
         onChanged();
         return getScheduleTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5189,14 +4407,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
         if (scheduleTimeBuilder_ != null) {
           return scheduleTimeBuilder_.getMessageOrBuilder();
         } else {
-          return scheduleTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : scheduleTime_;
+          return scheduleTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
         }
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5207,32 +4422,26 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getScheduleTimeFieldBuilder() {
         if (scheduleTimeBuilder_ == null) {
-          scheduleTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getScheduleTime(), getParentForChildren(), isClean());
+          scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getScheduleTime(),
+                  getParentForChildren(),
+                  isClean());
           scheduleTime_ = null;
         }
         return scheduleTimeBuilder_;
       }
 
-      private int intervalDurationDays_;
+      private int intervalDurationDays_ ;
       /**
-       *
-       *
        * 
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -5240,41 +4449,34 @@ public int getIntervalDurationDays() { return intervalDurationDays_; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The intervalDurationDays to set. * @return This builder for chaining. */ public Builder setIntervalDurationDays(int value) { - + intervalDurationDays_ = value; onChanged(); return this; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { - + intervalDurationDays_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5287,32 +4489,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5324,17 +4524,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5342,7 +4540,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -5351,15 +4548,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5367,15 +4563,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -5386,14 +4583,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -5402,29 +4596,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -5435,8 +4629,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_; /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5445,7 +4637,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -5456,42 +4647,34 @@ public int getMaxQps() { public static final int STARTING_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList startingUrls_; /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_; } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -5499,34 +4682,28 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } public static final int AUTHENTICATION_FIELD_NUMBER = 5; private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication_; /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ @java.lang.Override @@ -5534,121 +4711,92 @@ public boolean hasAuthentication() { return authentication_ != null; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return The authentication. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getAuthentication() { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { return getAuthentication(); } public static final int USER_AGENT_FIELD_NUMBER = 6; private int userAgent_; /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList blacklistPatterns_; /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_; } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -5656,33 +4804,28 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } public static final int SCHEDULE_FIELD_NUMBER = 8; private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule_; /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ @java.lang.Override @@ -5690,25 +4833,18 @@ public boolean hasSchedule() { return schedule_ != null; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedule() { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -5716,64 +4852,43 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedul * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { return getSchedule(); } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; private java.util.List targetPlatforms_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform> - targetPlatforms_converter_ = + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform> targetPlatforms_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>() { - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform convert( - java.lang.Integer from) { + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.valueOf( - from); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.valueOf(from); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.UNRECOGNIZED : result; } }; /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ @java.lang.Override - public java.util.List - getTargetPlatformsList() { + public java.util.List getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>( - targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ @java.lang.Override @@ -5781,55 +4896,40 @@ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms(int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ @java.lang.Override - public java.util.List getTargetPlatformsValueList() { + public java.util.List + getTargetPlatformsValueList() { return targetPlatforms_; } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -5837,67 +4937,45 @@ public java.util.List getTargetPlatformsValueList() { public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } - private int targetPlatformsMemoizedSerializedSize; public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER = 10; private int exportToSecurityCommandCenter_; /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override - public int getExportToSecurityCommandCenterValue() { + @java.lang.Override public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.valueOf( - exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; } public static final int LATEST_RUN_FIELD_NUMBER = 11; private com.google.cloud.websecurityscanner.v1beta.ScanRun latestRun_; /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ @java.lang.Override @@ -5905,25 +4983,18 @@ public boolean hasLatestRun() { return latestRun_ != null; } /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return The latestRun. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun() { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; } /** - * - * *
    * Latest ScanRun if available.
    * 
@@ -5938,43 +5009,31 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO public static final int RISK_LEVEL_FIELD_NUMBER = 12; private int riskLevel_; /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override - public int getRiskLevelValue() { + @java.lang.Override public int getRiskLevelValue() { return riskLevel_; } /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5986,7 +5045,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -6003,9 +5063,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (authentication_ != null) { output.writeMessage(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { + if (userAgent_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { output.writeEnum(6, userAgent_); } for (int i = 0; i < blacklistPatterns_.size(); i++) { @@ -6021,18 +5079,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < targetPlatforms_.size(); i++) { output.writeEnumNoTag(targetPlatforms_.get(i)); } - if (exportToSecurityCommandCenter_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED - .getNumber()) { + if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { output.writeEnum(10, exportToSecurityCommandCenter_); } if (latestRun_ != null) { output.writeMessage(11, getLatestRun()); } - if (riskLevel_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED - .getNumber()) { + if (riskLevel_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(12, riskLevel_); } unknownFields.writeTo(output); @@ -6051,7 +5104,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (maxQps_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxQps_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxQps_); } { int dataSize = 0; @@ -6062,12 +5116,12 @@ public int getSerializedSize() { size += 1 * getStartingUrlsList().size(); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthentication()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, userAgent_); + if (userAgent_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, userAgent_); } { int dataSize = 0; @@ -6078,35 +5132,32 @@ public int getSerializedSize() { size += 1 * getBlacklistPatternsList().size(); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSchedule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSchedule()); } { int dataSize = 0; for (int i = 0; i < targetPlatforms_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(targetPlatforms_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(targetPlatforms_.get(i)); } size += dataSize; - if (!getTargetPlatformsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - targetPlatformsMemoizedSerializedSize = dataSize; + if (!getTargetPlatformsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }targetPlatformsMemoizedSerializedSize = dataSize; } - if (exportToSecurityCommandCenter_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(10, exportToSecurityCommandCenter_); + if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, exportToSecurityCommandCenter_); } if (latestRun_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLatestRun()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLatestRun()); } - if (riskLevel_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, riskLevel_); + if (riskLevel_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, riskLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6116,33 +5167,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getMaxQps() != other.getMaxQps()) return false; - if (!getStartingUrlsList().equals(other.getStartingUrlsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getMaxQps() + != other.getMaxQps()) return false; + if (!getStartingUrlsList() + .equals(other.getStartingUrlsList())) return false; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication().equals(other.getAuthentication())) return false; + if (!getAuthentication() + .equals(other.getAuthentication())) return false; } if (userAgent_ != other.userAgent_) return false; - if (!getBlacklistPatternsList().equals(other.getBlacklistPatternsList())) return false; + if (!getBlacklistPatternsList() + .equals(other.getBlacklistPatternsList())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule().equals(other.getSchedule())) return false; + if (!getSchedule() + .equals(other.getSchedule())) return false; } if (!targetPlatforms_.equals(other.targetPlatforms_)) return false; if (exportToSecurityCommandCenter_ != other.exportToSecurityCommandCenter_) return false; if (hasLatestRun() != other.hasLatestRun()) return false; if (hasLatestRun()) { - if (!getLatestRun().equals(other.getLatestRun())) return false; + if (!getLatestRun() + .equals(other.getLatestRun())) return false; } if (riskLevel_ != other.riskLevel_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -6198,127 +5256,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanConfig resource contains the configurations to launch a scan.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig) com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder() @@ -6326,15 +5374,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6378,9 +5427,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; } @java.lang.Override @@ -6399,8 +5448,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig(this); + com.google.cloud.websecurityscanner.v1beta.ScanConfig result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -6446,39 +5494,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig)other); } else { super.mergeFrom(other); return this; @@ -6486,8 +5533,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -6566,8 +5612,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6576,13 +5621,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6590,13 +5632,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6605,8 +5647,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6614,14 +5654,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6629,8 +5670,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6638,22 +5677,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6661,18 +5698,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6680,16 +5714,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -6697,20 +5731,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -6719,21 +5751,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -6741,70 +5772,61 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int maxQps_; + private int maxQps_ ; /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6813,7 +5835,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -6821,8 +5842,6 @@ public int getMaxQps() { return maxQps_; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6831,19 +5850,16 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; - * * @param value The maxQps to set. * @return This builder for chaining. */ public Builder setMaxQps(int value) { - + maxQps_ = value; onChanged(); return this; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6852,62 +5868,51 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; - * * @return This builder for chaining. */ public Builder clearMaxQps() { - + maxQps_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList startingUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStartingUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -6915,90 +5920,80 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The startingUrls to set. * @return This builder for chaining. */ - public Builder setStartingUrls(int index, java.lang.String value) { + public Builder setStartingUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrls(java.lang.String value) { + public Builder addStartingUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The startingUrls to add. * @return This builder for chaining. */ - public Builder addAllStartingUrls(java.lang.Iterable values) { + public Builder addAllStartingUrls( + java.lang.Iterable values) { ensureStartingUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startingUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, startingUrls_); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearStartingUrls() { @@ -7008,22 +6003,20 @@ public Builder clearStartingUrls() { return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addStartingUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); @@ -7032,63 +6025,44 @@ public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> - authenticationBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> authenticationBuilder_; /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return The authentication. */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - getAuthentication() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { + public Builder setAuthentication(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7102,19 +6076,15 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -7125,25 +6095,18 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - public Builder mergeAuthentication( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { + public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder( - authentication_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -7155,15 +6118,12 @@ public Builder mergeAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { @@ -7177,67 +6137,51 @@ public Builder clearAuthentication() { return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder - getAuthenticationBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder getAuthenticationBuilder() { + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .getDefaultInstance() - : authentication_; + return authentication_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder>( - getAuthentication(), getParentForChildren(), isClean()); + authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder>( + getAuthentication(), + getParentForChildren(), + isClean()); authentication_ = null; } return authenticationBuilder_; @@ -7245,147 +6189,117 @@ public Builder clearAuthentication() { private int userAgent_ = 0; /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @param value The enum numeric value on the wire for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentValue(int value) { - + userAgent_ = value; onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED : result; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent value) { + public Builder setUserAgent(com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent value) { if (value == null) { throw new NullPointerException(); } - + userAgent_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBlacklistPatternsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_.getUnmodifiableView(); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -7393,95 +6307,85 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index to set the value at. * @param value The blacklistPatterns to set. * @return This builder for chaining. */ - public Builder setBlacklistPatterns(int index, java.lang.String value) { + public Builder setBlacklistPatterns( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatterns(java.lang.String value) { + public Builder addBlacklistPatterns( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param values The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addAllBlacklistPatterns(java.lang.Iterable values) { + public Builder addAllBlacklistPatterns( + java.lang.Iterable values) { ensureBlacklistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blacklistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blacklistPatterns_); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return This builder for chaining. */ public Builder clearBlacklistPatterns() { @@ -7491,23 +6395,21 @@ public Builder clearBlacklistPatterns() { return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { + public Builder addBlacklistPatternsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); @@ -7516,55 +6418,41 @@ public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> - scheduleBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> scheduleBuilder_; /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public Builder setSchedule( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { + public Builder setSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7578,8 +6466,6 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7598,22 +6484,17 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public Builder mergeSchedule( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { + public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder(schedule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); } else { schedule_ = value; } @@ -7625,8 +6506,6 @@ public Builder mergeSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7645,42 +6524,33 @@ public Builder clearSchedule() { return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder - getScheduleBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder getScheduleBuilder() { + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7688,24 +6558,21 @@ public Builder clearSchedule() { * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder>( - getSchedule(), getParentForChildren(), isClean()); + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); schedule_ = null; } return scheduleBuilder_; } - private java.util.List targetPlatforms_ = java.util.Collections.emptyList(); - + private java.util.List targetPlatforms_ = + java.util.Collections.emptyList(); private void ensureTargetPlatformsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -7713,73 +6580,50 @@ private void ensureTargetPlatformsIsMutable() { } } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ - public java.util.List - getTargetPlatformsList() { + public java.util.List getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>( - targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms(int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index to set the value at. * @param value The targetPlatforms to set. * @return This builder for chaining. @@ -7795,22 +6639,16 @@ public Builder setTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param value The targetPlatforms to add. * @return This builder for chaining. */ - public Builder addTargetPlatforms( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform value) { + public Builder addTargetPlatforms(com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform value) { if (value == null) { throw new NullPointerException(); } @@ -7820,24 +6658,17 @@ public Builder addTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param values The targetPlatforms to add. * @return This builder for chaining. */ public Builder addAllTargetPlatforms( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform> - values) { + java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform value : values) { targetPlatforms_.add(value.getNumber()); @@ -7846,17 +6677,12 @@ public Builder addAllTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return This builder for chaining. */ public Builder clearTargetPlatforms() { @@ -7866,34 +6692,25 @@ public Builder clearTargetPlatforms() { return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - public java.util.List getTargetPlatformsValueList() { + public java.util.List + getTargetPlatformsValueList() { return java.util.Collections.unmodifiableList(targetPlatforms_); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -7901,39 +6718,30 @@ public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index to set the value at. * @param value The enum numeric value on the wire for targetPlatforms to set. * @return This builder for chaining. */ - public Builder setTargetPlatformsValue(int index, int value) { + public Builder setTargetPlatformsValue( + int index, int value) { ensureTargetPlatformsIsMutable(); targetPlatforms_.set(index, value); onChanged(); return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param value The enum numeric value on the wire for targetPlatforms to add. * @return This builder for chaining. */ @@ -7944,21 +6752,17 @@ public Builder addTargetPlatformsValue(int value) { return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param values The enum numeric values on the wire for targetPlatforms to add. * @return This builder for chaining. */ - public Builder addAllTargetPlatformsValue(java.lang.Iterable values) { + public Builder addAllTargetPlatformsValue( + java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (int value : values) { targetPlatforms_.add(value); @@ -7969,111 +6773,78 @@ public Builder addAllTargetPlatformsValue(java.lang.Iterable private int exportToSecurityCommandCenter_ = 0; /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override - public int getExportToSecurityCommandCenterValue() { + @java.lang.Override public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @param value The enum numeric value on the wire for exportToSecurityCommandCenter to set. * @return This builder for chaining. */ public Builder setExportToSecurityCommandCenterValue(int value) { - + exportToSecurityCommandCenter_ = value; onChanged(); return this; } /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .valueOf(exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; } /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @param value The exportToSecurityCommandCenter to set. * @return This builder for chaining. */ - public Builder setExportToSecurityCommandCenter( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter value) { + public Builder setExportToSecurityCommandCenter(com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter value) { if (value == null) { throw new NullPointerException(); } - + exportToSecurityCommandCenter_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return This builder for chaining. */ public Builder clearExportToSecurityCommandCenter() { - + exportToSecurityCommandCenter_ = 0; onChanged(); return this; @@ -8081,47 +6852,34 @@ public Builder clearExportToSecurityCommandCenter() { private com.google.cloud.websecurityscanner.v1beta.ScanRun latestRun_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> - latestRunBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> latestRunBuilder_; /** - * - * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ public boolean hasLatestRun() { return latestRunBuilder_ != null || latestRun_ != null; } /** - * - * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return The latestRun. */ public com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun() { if (latestRunBuilder_ == null) { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; } else { return latestRunBuilder_.getMessage(); } } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8142,8 +6900,6 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun v return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8162,8 +6918,6 @@ public Builder setLatestRun( return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8174,9 +6928,7 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun if (latestRunBuilder_ == null) { if (latestRun_ != null) { latestRun_ = - com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder(latestRun_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder(latestRun_).mergeFrom(value).buildPartial(); } else { latestRun_ = value; } @@ -8188,8 +6940,6 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8208,8 +6958,6 @@ public Builder clearLatestRun() { return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8217,13 +6965,11 @@ public Builder clearLatestRun() { * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; */ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getLatestRunBuilder() { - + onChanged(); return getLatestRunFieldBuilder().getBuilder(); } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8234,14 +6980,11 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO if (latestRunBuilder_ != null) { return latestRunBuilder_.getMessageOrBuilder(); } else { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; } } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8249,17 +6992,14 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> getLatestRunFieldBuilder() { if (latestRunBuilder_ == null) { - latestRunBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( - getLatestRun(), getParentForChildren(), isClean()); + latestRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( + getLatestRun(), + getParentForChildren(), + isClean()); latestRun_ = null; } return latestRunBuilder_; @@ -8267,100 +7007,80 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO private int riskLevel_ = 0; /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override - public int getRiskLevelValue() { + @java.lang.Override public int getRiskLevelValue() { return riskLevel_; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @param value The enum numeric value on the wire for riskLevel to set. * @return This builder for chaining. */ public Builder setRiskLevelValue(int value) { - + riskLevel_ = value; onChanged(); return this; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED : result; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @param value The riskLevel to set. * @return This builder for chaining. */ - public Builder setRiskLevel( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel value) { + public Builder setRiskLevel(com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel value) { if (value == null) { throw new NullPointerException(); } - + riskLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return This builder for chaining. */ public Builder clearRiskLevel() { - + riskLevel_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8370,12 +7090,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig) private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig(); } @@ -8384,16 +7104,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8408,4 +7128,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java similarity index 75% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java index 2f1c0033..53863ec2 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_config_error.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
  * APIs when scan configuration validation fails. It is also reported as part of
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfigError}
  */
-public final class ScanConfigError extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanConfigError extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfigError)
     ScanConfigErrorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanConfigError.newBuilder() to construct.
   private ScanConfigError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanConfigError() {
     code_ = 0;
     fieldName_ = "";
@@ -47,15 +29,16 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanConfigError(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,27 +57,25 @@ private ScanConfigError(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fieldName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            fieldName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,31 +83,27 @@ private ScanConfigError(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class,
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -135,10 +112,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfigError.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * There is no error.
      * 
@@ -147,8 +123,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0, 0), /** - * - * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -158,8 +132,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     INTERNAL_ERROR(2, 1),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -169,8 +141,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_API_BACKEND_ERROR(3, 2),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -180,8 +150,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_API_NOT_ACCESSIBLE(4, 3),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -191,8 +159,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -201,8 +167,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CANNOT_USE_GOOGLE_COM_ACCOUNT(6, 6), /** - * - * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -211,8 +175,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CANNOT_USE_OWNER_ACCOUNT(7, 7), /** - * - * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -222,8 +184,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMPUTE_API_BACKEND_ERROR(8, 8),
     /**
-     *
-     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -233,8 +193,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMPUTE_API_NOT_ACCESSIBLE(9, 9),
     /**
-     *
-     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -243,8 +201,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(10, 10), /** - * - * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -253,8 +209,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_MALFORMED(11, 11), /** - * - * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -263,8 +217,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(12, 12), /** - * - * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -274,8 +226,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS(13, 13),
     /**
-     *
-     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -284,8 +234,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS(14, 14), /** - * - * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -295,8 +243,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS(15, 15),
     /**
-     *
-     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -305,8 +251,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ DUPLICATE_SCAN_NAME(16, 16), /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -315,8 +259,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_FIELD_VALUE(17, 18), /** - * - * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -325,8 +267,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FAILED_TO_AUTHENTICATE_TO_TARGET(18, 19), /** - * - * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -335,8 +275,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FINDING_TYPE_UNSPECIFIED(19, 20), /** - * - * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -346,8 +284,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -356,8 +292,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FORBIDDEN_UPDATE_TO_MANAGED_SCAN(21, 43), /** - * - * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -368,8 +302,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     MALFORMED_FILTER(22, 22),
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -378,8 +310,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ MALFORMED_RESOURCE_NAME(23, 23), /** - * - * *
      * The current project is not in an active state.
      * 
@@ -388,8 +318,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ PROJECT_INACTIVE(24, 24), /** - * - * *
      * A required field is not set.
      * 
@@ -398,8 +326,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ REQUIRED_FIELD(25, 25), /** - * - * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -409,8 +335,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -419,8 +343,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SCAN_ALREADY_RUNNING(27, 27), /** - * - * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -429,8 +351,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SCAN_NOT_RUNNING(28, 28), /** - * - * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -439,8 +359,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(29, 29), /** - * - * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -449,8 +367,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_MALFORMED(30, 30), /** - * - * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -459,8 +375,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(31, 31), /** - * - * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -470,8 +384,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(32, 32),
     /**
-     *
-     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -480,8 +392,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS(33, 33), /** - * - * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -491,8 +401,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEED_URL_HAS_UNRESERVED_IP_ADDRESS(34, 35),
     /**
-     *
-     *
      * 
      * The Cloud Security Scanner service account is not configured under the
      * project.
@@ -502,8 +410,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -512,8 +418,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TOO_MANY_SCANS(36, 37), /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -522,8 +426,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNABLE_TO_RESOLVE_PROJECT_INFO(37, 38), /** - * - * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -532,8 +434,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -542,8 +442,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_FILTER(39, 40), /** - * - * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -553,8 +451,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     UNSUPPORTED_FINDING_TYPE(40, 41),
     /**
-     *
-     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -566,8 +462,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * There is no error.
      * 
@@ -576,8 +470,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final Code OK = CODE_UNSPECIFIED; /** - * - * *
      * There is no error.
      * 
@@ -586,8 +478,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * There is no error.
      * 
@@ -596,8 +486,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OK_VALUE = 0; /** - * - * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -607,8 +495,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INTERNAL_ERROR_VALUE = 1;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -618,8 +504,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_API_BACKEND_ERROR_VALUE = 2;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -629,8 +513,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_API_NOT_ACCESSIBLE_VALUE = 3;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -640,8 +522,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_DEFAULT_HOST_MISSING_VALUE = 4;
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -650,8 +530,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANNOT_USE_GOOGLE_COM_ACCOUNT_VALUE = 6; /** - * - * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -660,8 +538,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANNOT_USE_OWNER_ACCOUNT_VALUE = 7; /** - * - * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -671,8 +547,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMPUTE_API_BACKEND_ERROR_VALUE = 8;
     /**
-     *
-     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -682,8 +556,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMPUTE_API_NOT_ACCESSIBLE_VALUE = 9;
     /**
-     *
-     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -692,8 +564,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 10; /** - * - * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -702,8 +572,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_MALFORMED_VALUE = 11; /** - * - * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -712,8 +580,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 12; /** - * - * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -723,8 +589,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 13;
     /**
-     *
-     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -733,8 +597,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 14; /** - * - * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -744,8 +606,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 15;
     /**
-     *
-     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -754,8 +614,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DUPLICATE_SCAN_NAME_VALUE = 16; /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -764,8 +622,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_FIELD_VALUE_VALUE = 18; /** - * - * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -774,8 +630,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_TO_AUTHENTICATE_TO_TARGET_VALUE = 19; /** - * - * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -784,8 +638,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINDING_TYPE_UNSPECIFIED_VALUE = 20; /** - * - * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -795,8 +647,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FORBIDDEN_TO_SCAN_COMPUTE_VALUE = 21;
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -805,8 +655,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORBIDDEN_UPDATE_TO_MANAGED_SCAN_VALUE = 43; /** - * - * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -817,8 +665,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MALFORMED_FILTER_VALUE = 22;
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -827,8 +673,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MALFORMED_RESOURCE_NAME_VALUE = 23; /** - * - * *
      * The current project is not in an active state.
      * 
@@ -837,8 +681,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROJECT_INACTIVE_VALUE = 24; /** - * - * *
      * A required field is not set.
      * 
@@ -847,8 +689,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REQUIRED_FIELD_VALUE = 25; /** - * - * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -858,8 +698,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESOURCE_NAME_INCONSISTENT_VALUE = 26;
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -868,8 +706,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCAN_ALREADY_RUNNING_VALUE = 27; /** - * - * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -878,8 +714,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCAN_NOT_RUNNING_VALUE = 28; /** - * - * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -888,8 +722,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 29; /** - * - * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -898,8 +730,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_MALFORMED_VALUE = 30; /** - * - * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -908,8 +738,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 31; /** - * - * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -919,8 +747,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 32;
     /**
-     *
-     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -929,8 +755,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 33; /** - * - * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -940,8 +764,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEED_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 35;
     /**
-     *
-     *
      * 
      * The Cloud Security Scanner service account is not configured under the
      * project.
@@ -951,8 +773,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SERVICE_ACCOUNT_NOT_CONFIGURED_VALUE = 36;
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -961,8 +781,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TOO_MANY_SCANS_VALUE = 37; /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -971,8 +789,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNABLE_TO_RESOLVE_PROJECT_INFO_VALUE = 38; /** - * - * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -981,8 +797,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_BLACKLIST_PATTERN_FORMAT_VALUE = 39; /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -991,8 +805,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_FILTER_VALUE = 40; /** - * - * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -1002,8 +814,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNSUPPORTED_FINDING_TYPE_VALUE = 41;
     /**
-     *
-     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -1012,6 +822,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_URL_SCHEME_VALUE = 42; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -1036,174 +847,91 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return INTERNAL_ERROR; - case 2: - return APPENGINE_API_BACKEND_ERROR; - case 3: - return APPENGINE_API_NOT_ACCESSIBLE; - case 4: - return APPENGINE_DEFAULT_HOST_MISSING; - case 6: - return CANNOT_USE_GOOGLE_COM_ACCOUNT; - case 7: - return CANNOT_USE_OWNER_ACCOUNT; - case 8: - return COMPUTE_API_BACKEND_ERROR; - case 9: - return COMPUTE_API_NOT_ACCESSIBLE; - case 10: - return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 11: - return CUSTOM_LOGIN_URL_MALFORMED; - case 12: - return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 13: - return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 14: - return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 15: - return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; - case 16: - return DUPLICATE_SCAN_NAME; - case 18: - return INVALID_FIELD_VALUE; - case 19: - return FAILED_TO_AUTHENTICATE_TO_TARGET; - case 20: - return FINDING_TYPE_UNSPECIFIED; - case 21: - return FORBIDDEN_TO_SCAN_COMPUTE; - case 43: - return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; - case 22: - return MALFORMED_FILTER; - case 23: - return MALFORMED_RESOURCE_NAME; - case 24: - return PROJECT_INACTIVE; - case 25: - return REQUIRED_FIELD; - case 26: - return RESOURCE_NAME_INCONSISTENT; - case 27: - return SCAN_ALREADY_RUNNING; - case 28: - return SCAN_NOT_RUNNING; - case 29: - return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 30: - return SEED_URL_MALFORMED; - case 31: - return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 32: - return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 33: - return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 35: - return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; - case 36: - return SERVICE_ACCOUNT_NOT_CONFIGURED; - case 37: - return TOO_MANY_SCANS; - case 38: - return UNABLE_TO_RESOLVE_PROJECT_INFO; - case 39: - return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; - case 40: - return UNSUPPORTED_FILTER; - case 41: - return UNSUPPORTED_FINDING_TYPE; - case 42: - return UNSUPPORTED_URL_SCHEME; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return INTERNAL_ERROR; + case 2: return APPENGINE_API_BACKEND_ERROR; + case 3: return APPENGINE_API_NOT_ACCESSIBLE; + case 4: return APPENGINE_DEFAULT_HOST_MISSING; + case 6: return CANNOT_USE_GOOGLE_COM_ACCOUNT; + case 7: return CANNOT_USE_OWNER_ACCOUNT; + case 8: return COMPUTE_API_BACKEND_ERROR; + case 9: return COMPUTE_API_NOT_ACCESSIBLE; + case 10: return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 11: return CUSTOM_LOGIN_URL_MALFORMED; + case 12: return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 13: return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 14: return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 15: return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; + case 16: return DUPLICATE_SCAN_NAME; + case 18: return INVALID_FIELD_VALUE; + case 19: return FAILED_TO_AUTHENTICATE_TO_TARGET; + case 20: return FINDING_TYPE_UNSPECIFIED; + case 21: return FORBIDDEN_TO_SCAN_COMPUTE; + case 43: return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; + case 22: return MALFORMED_FILTER; + case 23: return MALFORMED_RESOURCE_NAME; + case 24: return PROJECT_INACTIVE; + case 25: return REQUIRED_FIELD; + case 26: return RESOURCE_NAME_INCONSISTENT; + case 27: return SCAN_ALREADY_RUNNING; + case 28: return SCAN_NOT_RUNNING; + case 29: return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 30: return SEED_URL_MALFORMED; + case 31: return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 32: return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 33: return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 35: return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; + case 36: return SERVICE_ACCOUNT_NOT_CONFIGURED; + case 37: return TOO_MANY_SCANS; + case 38: return UNABLE_TO_RESOLVE_PROJECT_INFO; + case 39: return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; + case 40: return UNSUPPORTED_FILTER; + case 41: return UNSUPPORTED_FINDING_TYPE; + case 42: return UNSUPPORTED_URL_SCHEME; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = getStaticValuesArray(); - private static Code[] getStaticValuesArray() { return new Code[] { - CODE_UNSPECIFIED, - OK, - INTERNAL_ERROR, - APPENGINE_API_BACKEND_ERROR, - APPENGINE_API_NOT_ACCESSIBLE, - APPENGINE_DEFAULT_HOST_MISSING, - CANNOT_USE_GOOGLE_COM_ACCOUNT, - CANNOT_USE_OWNER_ACCOUNT, - COMPUTE_API_BACKEND_ERROR, - COMPUTE_API_NOT_ACCESSIBLE, - CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, - CUSTOM_LOGIN_URL_MALFORMED, - CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, - CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, - CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, - CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, - DUPLICATE_SCAN_NAME, - INVALID_FIELD_VALUE, - FAILED_TO_AUTHENTICATE_TO_TARGET, - FINDING_TYPE_UNSPECIFIED, - FORBIDDEN_TO_SCAN_COMPUTE, - FORBIDDEN_UPDATE_TO_MANAGED_SCAN, - MALFORMED_FILTER, - MALFORMED_RESOURCE_NAME, - PROJECT_INACTIVE, - REQUIRED_FIELD, - RESOURCE_NAME_INCONSISTENT, - SCAN_ALREADY_RUNNING, - SCAN_NOT_RUNNING, - SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, - SEED_URL_MALFORMED, - SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, - SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, - SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, - SEED_URL_HAS_UNRESERVED_IP_ADDRESS, - SERVICE_ACCOUNT_NOT_CONFIGURED, - TOO_MANY_SCANS, - UNABLE_TO_RESOLVE_PROJECT_INFO, - UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, - UNSUPPORTED_FILTER, - UNSUPPORTED_FINDING_TYPE, - UNSUPPORTED_URL_SCHEME, + CODE_UNSPECIFIED, OK, INTERNAL_ERROR, APPENGINE_API_BACKEND_ERROR, APPENGINE_API_NOT_ACCESSIBLE, APPENGINE_DEFAULT_HOST_MISSING, CANNOT_USE_GOOGLE_COM_ACCOUNT, CANNOT_USE_OWNER_ACCOUNT, COMPUTE_API_BACKEND_ERROR, COMPUTE_API_NOT_ACCESSIBLE, CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, CUSTOM_LOGIN_URL_MALFORMED, CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, DUPLICATE_SCAN_NAME, INVALID_FIELD_VALUE, FAILED_TO_AUTHENTICATE_TO_TARGET, FINDING_TYPE_UNSPECIFIED, FORBIDDEN_TO_SCAN_COMPUTE, FORBIDDEN_UPDATE_TO_MANAGED_SCAN, MALFORMED_FILTER, MALFORMED_RESOURCE_NAME, PROJECT_INACTIVE, REQUIRED_FIELD, RESOURCE_NAME_INCONSISTENT, SCAN_ALREADY_RUNNING, SCAN_NOT_RUNNING, SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, SEED_URL_MALFORMED, SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, SEED_URL_HAS_UNRESERVED_IP_ADDRESS, SERVICE_ACCOUNT_NOT_CONFIGURED, TOO_MANY_SCANS, UNABLE_TO_RESOLVE_PROJECT_INFO, UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, UNSUPPORTED_FILTER, UNSUPPORTED_FINDING_TYPE, UNSUPPORTED_URL_SCHEME, }; } - - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1225,46 +953,33 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fieldName_; /** - * - * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1273,7 +988,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode()
    * 
* * string field_name = 2; - * * @return The fieldName. */ @java.lang.Override @@ -1282,15 +996,14 @@ public java.lang.String getFieldName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; } } /** - * - * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1299,15 +1012,16 @@ public java.lang.String getFieldName() {
    * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ @java.lang.Override - public com.google.protobuf.ByteString getFieldNameBytes() { + public com.google.protobuf.ByteString + getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1316,7 +1030,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1328,10 +1041,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { @@ -1346,10 +1058,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); @@ -1362,16 +1073,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfigError)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfigError other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError other = (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) obj; if (code_ != other.code_) return false; - if (!getFieldName().equals(other.getFieldName())) return false; + if (!getFieldName() + .equals(other.getFieldName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1393,104 +1104,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfigError prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfigError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
    * APIs when scan configuration validation fails. It is also reported as part of
@@ -1500,23 +1203,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfigError}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfigError)
       com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class,
-              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder()
@@ -1524,15 +1225,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1544,9 +1246,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
@@ -1565,8 +1267,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanConfigError buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanConfigError result =
-          new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanConfigError result = new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(this);
       result.code_ = code_;
       result.fieldName_ = fieldName_;
       onBuilt();
@@ -1577,39 +1278,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfigError) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfigError) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfigError)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1617,8 +1317,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfigError other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -1645,8 +1344,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1658,67 +1356,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -1726,24 +1408,21 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanConfigErro if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -1751,8 +1430,6 @@ public Builder clearCode() { private java.lang.Object fieldName_ = ""; /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1761,13 +1438,13 @@ public Builder clearCode() {
      * 
* * string field_name = 2; - * * @return The fieldName. */ public java.lang.String getFieldName() { java.lang.Object ref = fieldName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; @@ -1776,8 +1453,6 @@ public java.lang.String getFieldName() { } } /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1786,14 +1461,15 @@ public java.lang.String getFieldName() {
      * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ - public com.google.protobuf.ByteString getFieldNameBytes() { + public com.google.protobuf.ByteString + getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1801,8 +1477,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } } /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1811,22 +1485,20 @@ public com.google.protobuf.ByteString getFieldNameBytes() {
      * 
* * string field_name = 2; - * * @param value The fieldName to set. * @return This builder for chaining. */ - public Builder setFieldName(java.lang.String value) { + public Builder setFieldName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fieldName_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1835,18 +1507,15 @@ public Builder setFieldName(java.lang.String value) {
      * 
* * string field_name = 2; - * * @return This builder for chaining. */ public Builder clearFieldName() { - + fieldName_ = getDefaultInstance().getFieldName(); onChanged(); return this; } /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1855,23 +1524,23 @@ public Builder clearFieldName() {
      * 
* * string field_name = 2; - * * @param value The bytes for fieldName to set. * @return This builder for chaining. */ - public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + public Builder setFieldNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1881,12 +1550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfigError) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfigError) private static final com.google.cloud.websecurityscanner.v1beta.ScanConfigError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(); } @@ -1895,16 +1564,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfigError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfigError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfigError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfigError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1919,4 +1588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java index 23fc4f1a..61d24001 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java @@ -1,56 +1,32 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_config_error.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanConfigErrorOrBuilder - extends +public interface ScanConfigErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfigError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode(); /** - * - * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -59,13 +35,10 @@ public interface ScanConfigErrorOrBuilder
    * 
* * string field_name = 2; - * * @return The fieldName. */ java.lang.String getFieldName(); /** - * - * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -74,8 +47,8 @@ public interface ScanConfigErrorOrBuilder
    * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ - com.google.protobuf.ByteString getFieldNameBytes(); + com.google.protobuf.ByteString + getFieldNameBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java new file mode 100644 index 00000000..d075bcb5 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanConfigErrorProto { + private ScanConfigErrorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable; + + 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/cloud/websecurityscanner/v1beta" + + "/scan_config_error.proto\022&google.cloud.w" + + "ebsecurityscanner.v1beta\"\355\013\n\017ScanConfigE" + + "rror\022J\n\004code\030\001 \001(\0162<.google.cloud.websec" + + "urityscanner.v1beta.ScanConfigError.Code" + + "\022\022\n\nfield_name\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UN" + + "SPECIFIED\020\000\022\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022" + + "\037\n\033APPENGINE_API_BACKEND_ERROR\020\002\022 \n\034APPE" + + "NGINE_API_NOT_ACCESSIBLE\020\003\022\"\n\036APPENGINE_" + + "DEFAULT_HOST_MISSING\020\004\022!\n\035CANNOT_USE_GOO" + + "GLE_COM_ACCOUNT\020\006\022\034\n\030CANNOT_USE_OWNER_AC" + + "COUNT\020\007\022\035\n\031COMPUTE_API_BACKEND_ERROR\020\010\022\036" + + "\n\032COMPUTE_API_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM" + + "_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PR" + + "OJECT\020\n\022\036\n\032CUSTOM_LOGIN_URL_MALFORMED\020\013\022" + + "3\n/CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTAB" + + "LE_ADDRESS\020\014\0221\n-CUSTOM_LOGIN_URL_MAPPED_" + + "TO_UNRESERVED_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_" + + "URL_HAS_NON_ROUTABLE_IP_ADDRESS\020\016\022.\n*CUS" + + "TOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS\020" + + "\017\022\027\n\023DUPLICATE_SCAN_NAME\020\020\022\027\n\023INVALID_FI" + + "ELD_VALUE\020\022\022$\n FAILED_TO_AUTHENTICATE_TO" + + "_TARGET\020\023\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\024\022" + + "\035\n\031FORBIDDEN_TO_SCAN_COMPUTE\020\025\022$\n FORBID" + + "DEN_UPDATE_TO_MANAGED_SCAN\020+\022\024\n\020MALFORME" + + "D_FILTER\020\026\022\033\n\027MALFORMED_RESOURCE_NAME\020\027\022" + + "\024\n\020PROJECT_INACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020" + + "\031\022\036\n\032RESOURCE_NAME_INCONSISTENT\020\032\022\030\n\024SCA" + + "N_ALREADY_RUNNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020" + + "\034\022/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT" + + "_PROJECT\020\035\022\026\n\022SEED_URL_MALFORMED\020\036\022+\n\'SE" + + "ED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\037\022" + + ")\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS" + + "\020 \022(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRE" + + "SS\020!\022&\n\"SEED_URL_HAS_UNRESERVED_IP_ADDRE" + + "SS\020#\022\"\n\036SERVICE_ACCOUNT_NOT_CONFIGURED\020$" + + "\022\022\n\016TOO_MANY_SCANS\020%\022\"\n\036UNABLE_TO_RESOLV" + + "E_PROJECT_INFO\020&\022(\n$UNSUPPORTED_BLACKLIS" + + "T_PATTERN_FORMAT\020\'\022\026\n\022UNSUPPORTED_FILTER" + + "\020(\022\034\n\030UNSUPPORTED_FINDING_TYPE\020)\022\032\n\026UNSU" + + "PPORTED_URL_SCHEME\020*\032\002\020\001B\234\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\024ScanCon" + + "figErrorProtoP\001ZXgoogle.golang.org/genpr" + + "oto/googleapis/cloud/websecurityscanner/" + + "v1beta;websecurityscanner\252\002&Google.Cloud" + + ".WebSecurityScanner.V1Beta\312\002&Google\\Clou" + + "d\\WebSecurityScanner\\V1beta\352\002)Google::Cl" + + "oud::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor, + new java.lang.String[] { "Code", "FieldName", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java similarity index 77% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java index f8ba7b48..3adb81e5 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_config.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanConfigOrBuilder - extends +public interface ScanConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -33,13 +15,10 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -47,39 +26,32 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -88,211 +60,164 @@ public interface ScanConfigOrBuilder
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ int getMaxQps(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - java.util.List getStartingUrlsList(); + java.util.List + getStartingUrlsList(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ int getStartingUrlsCount(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ java.lang.String getStartingUrls(int index); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - com.google.protobuf.ByteString getStartingUrlsBytes(int index); + com.google.protobuf.ByteString + getStartingUrlsBytes(int index); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return The authentication. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ int getUserAgentValue(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - java.util.List getBlacklistPatternsList(); + java.util.List + getBlacklistPatternsList(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ int getBlacklistPatternsCount(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ java.lang.String getBlacklistPatterns(int index); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - com.google.protobuf.ByteString getBlacklistPatternsBytes(int index); + com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -302,144 +227,99 @@ public interface ScanConfigOrBuilder com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ - java.util.List - getTargetPlatformsList(); + java.util.List getTargetPlatformsList(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ int getTargetPlatformsCount(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms( - int index); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms(int index); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - java.util.List getTargetPlatformsValueList(); + java.util.List + getTargetPlatformsValueList(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ int getTargetPlatformsValue(int index); /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ int getExportToSecurityCommandCenterValue(); /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter(); /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ boolean hasLatestRun(); /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return The latestRun. */ com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun(); /** - * - * *
    * Latest ScanRun if available.
    * 
@@ -449,26 +329,20 @@ com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPl com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunOrBuilder(); /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ int getRiskLevelValue(); /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java new file mode 100644 index 00000000..95c4e259 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_config.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanConfigProto { + private ScanConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/websecurityscanner/v1beta" + + "/scan_config.proto\022&google.cloud.websecu" + + "rityscanner.v1beta\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\0325" + + "google/cloud/websecurityscanner/v1beta/s" + + "can_run.proto\032\037google/protobuf/timestamp" + + ".proto\"\246\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031\n\014d" + + "isplay_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001(\005\022" + + "\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Y\n\016authentic" + + "ation\030\005 \001(\0132A.google.cloud.websecuritysc" + + "anner.v1beta.ScanConfig.Authentication\022P" + + "\n\nuser_agent\030\006 \001(\0162<.google.cloud.websec" + + "urityscanner.v1beta.ScanConfig.UserAgent" + + "\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedule" + + "\030\010 \001(\0132;.google.cloud.websecurityscanner" + + ".v1beta.ScanConfig.Schedule\022[\n\020target_pl" + + "atforms\030\t \003(\0162A.google.cloud.websecurity" + + "scanner.v1beta.ScanConfig.TargetPlatform" + + "\022{\n!export_to_security_command_center\030\n " + + "\001(\0162P.google.cloud.websecurityscanner.v1" + + "beta.ScanConfig.ExportToSecurityCommandC" + + "enter\022C\n\nlatest_run\030\013 \001(\0132/.google.cloud" + + ".websecurityscanner.v1beta.ScanRun\022P\n\nri" + + "sk_level\030\014 \001(\0162<.google.cloud.websecurit" + + "yscanner.v1beta.ScanConfig.RiskLevel\032\224\003\n" + + "\016Authentication\022i\n\016google_account\030\001 \001(\0132" + + "O.google.cloud.websecurityscanner.v1beta" + + ".ScanConfig.Authentication.GoogleAccount" + + "H\000\022i\n\016custom_account\030\002 \001(\0132O.google.clou" + + "d.websecurityscanner.v1beta.ScanConfig.A" + + "uthentication.CustomAccountH\000\032@\n\rGoogleA" + + "ccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010passwor" + + "d\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010user" + + "name\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A\002\340A" + + "\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenticat" + + "ion\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022#\n\026interval_d" + + "uration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022\032\n\026" + + "USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX" + + "\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020" + + "\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFORM_U" + + "NSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPUTE\020" + + "\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED" + + "\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecur" + + "ityCommandCenter\0221\n-EXPORT_TO_SECURITY_C" + + "OMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001" + + "\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscanner." + + "googleapis.com/ScanConfig\022,projects/{pro" + + "ject}/scanConfigs/{scan_config}B\227\002\n*com." + + "google.cloud.websecurityscanner.v1betaB\017" + + "ScanConfigProtoP\001ZXgoogle.golang.org/gen" + + "proto/googleapis/cloud/websecurityscanne" + + "r/v1beta;websecurityscanner\252\002&Google.Clo" + + "ud.WebSecurityScanner.V1Beta\312\002&Google\\Cl" + + "oud\\WebSecurityScanner\\V1beta\352\002)Google::" + + "Cloud::WebSecurityScanner::V1betab\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "MaxQps", "StartingUrls", "Authentication", "UserAgent", "BlacklistPatterns", "Schedule", "TargetPlatforms", "ExportToSecurityCommandCenter", "LatestRun", "RiskLevel", }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor, + new java.lang.String[] { "GoogleAccount", "CustomAccount", "Authentication", }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor, + new java.lang.String[] { "Username", "Password", }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor, + new java.lang.String[] { "Username", "Password", "LoginUrl", }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor, + new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java index a3bb4729..5cbcdd18 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_run.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A ScanRun is a output-only resource representing an actual run of the scan.
  * Next id: 12
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRun}
  */
-public final class ScanRun extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRun extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanRun)
     ScanRunOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRun.newBuilder() to construct.
   private ScanRun(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRun() {
     name_ = "";
     executionState_ = 0;
@@ -47,15 +29,16 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRun(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,116 +58,99 @@ private ScanRun(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              executionState_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            executionState_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              resultState_ = rawValue;
-              break;
-            }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            resultState_ = rawValue;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 48:
-            {
-              urlsCrawledCount_ = input.readInt64();
-              break;
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              urlsTestedCount_ = input.readInt64();
-              break;
+
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 64:
-            {
-              hasVulnerabilities_ = input.readBool();
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          case 72:
-            {
-              progressPercent_ = input.readInt32();
-              break;
+
+            break;
+          }
+          case 48: {
+
+            urlsCrawledCount_ = input.readInt64();
+            break;
+          }
+          case 56: {
+
+            urlsTestedCount_ = input.readInt64();
+            break;
+          }
+          case 64: {
+
+            hasVulnerabilities_ = input.readBool();
+            break;
+          }
+          case 72: {
+
+            progressPercent_ = input.readInt32();
+            break;
+          }
+          case 82: {
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder subBuilder = null;
+            if (errorTrace_ != null) {
+              subBuilder = errorTrace_.toBuilder();
             }
-          case 82:
-            {
-              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder subBuilder =
-                  null;
-              if (errorTrace_ != null) {
-                subBuilder = errorTrace_.toBuilder();
-              }
-              errorTrace_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(errorTrace_);
-                errorTrace_ = subBuilder.buildPartial();
-              }
-
-              break;
+            errorTrace_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(errorTrace_);
+              errorTrace_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                warningTraces_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              warningTraces_.add(
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(),
-                      extensionRegistry));
-              break;
+
+            break;
+          }
+          case 90: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              warningTraces_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            warningTraces_.add(
+                input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -192,7 +158,8 @@ private ScanRun(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_);
@@ -201,35 +168,29 @@ private ScanRun(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanRun.class,
-            com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanRun.class, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Types of ScanRun execution state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState} */ - public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -239,8 +200,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -249,8 +208,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * The scan is in progress.
      * 
@@ -259,8 +216,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING(2), /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -272,8 +227,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -283,8 +236,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -293,8 +244,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * The scan is in progress.
      * 
@@ -303,8 +252,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCANNING_VALUE = 2; /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -313,6 +260,7 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINISHED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -337,53 +285,50 @@ public static ExecutionState valueOf(int value) { */ public static ExecutionState forNumber(int value) { switch (value) { - case 0: - return EXECUTION_STATE_UNSPECIFIED; - case 1: - return QUEUED; - case 2: - return SCANNING; - case 3: - return FINISHED; - default: - return null; + case 0: return EXECUTION_STATE_UNSPECIFIED; + case 1: return QUEUED; + case 2: return SCANNING; + case 3: return FINISHED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor().getEnumTypes().get(0); } private static final ExecutionState[] VALUES = values(); - public static ExecutionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -401,18 +346,15 @@ private ExecutionState(int value) { } /** - * - * *
    * Types of ScanRun result state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRun.ResultState} */ - public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { + public enum ResultState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -422,8 +364,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -432,8 +372,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESS(1), /** - * - * *
      * The scan finished with errors.
      * 
@@ -442,8 +380,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(2), /** - * - * *
      * The scan was terminated by user.
      * 
@@ -455,8 +391,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -466,8 +400,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -476,8 +408,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESS_VALUE = 1; /** - * - * *
      * The scan finished with errors.
      * 
@@ -486,8 +416,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; /** - * - * *
      * The scan was terminated by user.
      * 
@@ -496,6 +424,7 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KILLED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -520,53 +449,50 @@ public static ResultState valueOf(int value) { */ public static ResultState forNumber(int value) { switch (value) { - case 0: - return RESULT_STATE_UNSPECIFIED; - case 1: - return SUCCESS; - case 2: - return ERROR; - case 3: - return KILLED; - default: - return null; + case 0: return RESULT_STATE_UNSPECIFIED; + case 1: return SUCCESS; + case 2: return ERROR; + case 3: return KILLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResultState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultState findValueByNumber(int number) { + return ResultState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultState findValueByNumber(int number) { - return ResultState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor().getEnumTypes().get(1); } private static final ResultState[] VALUES = values(); - public static ResultState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -586,8 +512,6 @@ private ResultState(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -595,7 +519,6 @@ private ResultState(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -604,15 +527,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -620,15 +542,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -639,94 +562,67 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; private int executionState_; /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED : result; } public static final int RESULT_STATE_FIELD_NUMBER = 3; private int resultState_; /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -734,14 +630,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ @java.lang.Override @@ -749,8 +642,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -765,15 +656,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -781,15 +669,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -797,8 +682,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -814,15 +697,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_;
   /**
-   *
-   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -833,8 +713,6 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_; /** - * - * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -843,7 +721,6 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -854,14 +731,11 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_; /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -872,8 +746,6 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_; /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -882,7 +754,6 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -893,15 +764,12 @@ public int getProgressPercent() { public static final int ERROR_TRACE_FIELD_NUMBER = 10; private com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace errorTrace_; /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ @java.lang.Override @@ -909,26 +777,19 @@ public boolean hasErrorTrace() { return errorTrace_ != null; } /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrace() { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -937,92 +798,71 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac
    * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder
-      getErrorTraceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
     return getErrorTrace();
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
-  private java.util.List
-      warningTraces_;
+  private java.util.List warningTraces_;
   /**
-   *
-   *
    * 
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public java.util.List - getWarningTracesList() { + public java.util.List getWarningTracesList() { return warningTraces_; } /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> + public java.util.List getWarningTracesOrBuilderList() { return warningTraces_; } /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override public int getWarningTracesCount() { return warningTraces_.size(); } /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces(int index) { return warningTraces_.get(index); } /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder - getWarningTracesOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( + int index) { return warningTraces_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1034,19 +874,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState - .EXECUTION_STATE_UNSPECIFIED - .getNumber()) { + if (executionState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { + if (resultState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, resultState_); } if (startTime_ != null) { @@ -1085,40 +921,45 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState - .EXECUTION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, executionState_); + if (executionState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultState_); + if (resultState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resultState_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndTime()); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, urlsTestedCount_); } if (hasVulnerabilities_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hasVulnerabilities_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, hasVulnerabilities_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, progressPercent_); } if (errorTrace_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getErrorTrace()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getErrorTrace()); } for (int i = 0; i < warningTraces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, warningTraces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, warningTraces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1128,34 +969,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanRun)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanRun other = - (com.google.cloud.websecurityscanner.v1beta.ScanRun) obj; + com.google.cloud.websecurityscanner.v1beta.ScanRun other = (com.google.cloud.websecurityscanner.v1beta.ScanRun) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; - if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (getUrlsCrawledCount() + != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() + != other.getUrlsTestedCount()) return false; + if (getHasVulnerabilities() + != other.getHasVulnerabilities()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasErrorTrace() != other.hasErrorTrace()) return false; if (hasErrorTrace()) { - if (!getErrorTrace().equals(other.getErrorTrace())) return false; + if (!getErrorTrace() + .equals(other.getErrorTrace())) return false; } - if (!getWarningTracesList().equals(other.getWarningTracesList())) return false; + if (!getWarningTracesList() + .equals(other.getWarningTracesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1182,11 +1031,14 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsTestedCount()); hash = (37 * hash) + HAS_VULNERABILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); if (hasErrorTrace()) { @@ -1203,103 +1055,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanRun is a output-only resource representing an actual run of the scan.
    * Next id: 12
@@ -1307,23 +1152,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRun}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanRun)
       com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanRun.class,
-              com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanRun.class, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder()
@@ -1331,17 +1174,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getWarningTracesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1387,9 +1230,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
     }
 
     @java.lang.Override
@@ -1408,8 +1251,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanRun buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanRun result =
-          new com.google.cloud.websecurityscanner.v1beta.ScanRun(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanRun result = new com.google.cloud.websecurityscanner.v1beta.ScanRun(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.executionState_ = executionState_;
@@ -1450,39 +1292,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanRun) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRun) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRun)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1490,8 +1331,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRun other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1541,10 +1381,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRun othe
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            warningTracesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getWarningTracesFieldBuilder()
-                    : null;
+            warningTracesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getWarningTracesFieldBuilder() : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1569,8 +1408,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ScanRun) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanRun) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1579,13 +1417,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1593,13 +1428,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1608,8 +1443,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1617,14 +1450,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1632,8 +1466,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1641,22 +1473,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1664,18 +1494,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1683,16 +1510,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1700,99 +1527,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int executionState_ = 0; /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf( - executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED : result; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState( - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState value) { + public Builder setExecutionState(com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1800,98 +1601,78 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED : result; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState( - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState value) { + public Builder setResultState(com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; @@ -1899,33 +1680,24 @@ public Builder clearResultState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1936,8 +1708,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1958,15 +1728,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1977,8 +1746,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1989,7 +1756,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -2001,8 +1768,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -2021,8 +1786,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -2030,13 +1793,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -2047,12 +1808,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -2060,17 +1820,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2078,35 +1835,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2117,8 +1865,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2140,8 +1886,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2149,7 +1893,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -2160,8 +1905,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2173,7 +1916,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -2185,8 +1928,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2206,8 +1947,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2216,13 +1955,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2234,12 +1971,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2248,33 +1984,27 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
 
-    private long urlsCrawledCount_;
+    private long urlsCrawledCount_ ;
     /**
-     *
-     *
      * 
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -2282,47 +2012,39 @@ public long getUrlsCrawledCount() { return urlsCrawledCount_; } /** - * - * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_; + private long urlsTestedCount_ ; /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2331,7 +2053,6 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -2339,8 +2060,6 @@ public long getUrlsTestedCount() { return urlsTestedCount_; } /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2349,19 +2068,16 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2370,26 +2086,22 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasVulnerabilities_; + private boolean hasVulnerabilities_ ; /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -2397,45 +2109,37 @@ public boolean getHasVulnerabilities() { return hasVulnerabilities_; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @param value The hasVulnerabilities to set. * @return This builder for chaining. */ public Builder setHasVulnerabilities(boolean value) { - + hasVulnerabilities_ = value; onChanged(); return this; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { - + hasVulnerabilities_ = false; onChanged(); return this; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2444,7 +2148,6 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -2452,8 +2155,6 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2462,19 +2163,16 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2483,11 +2181,10 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -2495,49 +2192,36 @@ public Builder clearProgressPercent() { private com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace errorTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder> - errorTraceBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder> errorTraceBuilder_; /** - * - * *
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ public boolean hasErrorTrace() { return errorTraceBuilder_ != null || errorTrace_ != null; } /** - * - * *
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrace() { if (errorTraceBuilder_ == null) { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } else { return errorTraceBuilder_.getMessage(); } } /** - * - * *
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2545,8 +2229,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public Builder setErrorTrace(
-        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
+    public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
       if (errorTraceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2560,8 +2243,6 @@ public Builder setErrorTrace(
       return this;
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2581,8 +2262,6 @@ public Builder setErrorTrace(
       return this;
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2590,14 +2269,11 @@ public Builder setErrorTrace(
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public Builder mergeErrorTrace(
-        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
+    public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
       if (errorTraceBuilder_ == null) {
         if (errorTrace_ != null) {
           errorTrace_ =
-              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder(errorTrace_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder(errorTrace_).mergeFrom(value).buildPartial();
         } else {
           errorTrace_ = value;
         }
@@ -2609,8 +2285,6 @@ public Builder mergeErrorTrace(
       return this;
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2630,8 +2304,6 @@ public Builder clearErrorTrace() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2639,15 +2311,12 @@ public Builder clearErrorTrace() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder
-        getErrorTraceBuilder() {
-
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder getErrorTraceBuilder() {
+      
       onChanged();
       return getErrorTraceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2655,19 +2324,15 @@ public Builder clearErrorTrace() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder
-        getErrorTraceOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
       if (errorTraceBuilder_ != null) {
         return errorTraceBuilder_.getMessageOrBuilder();
       } else {
-        return errorTrace_ == null
-            ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()
-            : errorTrace_;
+        return errorTrace_ == null ?
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
       }
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2676,53 +2341,39 @@ public Builder clearErrorTrace() {
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder>
+        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder> 
         getErrorTraceFieldBuilder() {
       if (errorTraceBuilder_ == null) {
-        errorTraceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace,
-                com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder,
-                com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder>(
-                getErrorTrace(), getParentForChildren(), isClean());
+        errorTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder>(
+                getErrorTrace(),
+                getParentForChildren(),
+                isClean());
         errorTrace_ = null;
       }
       return errorTraceBuilder_;
     }
 
-    private java.util.List
-        warningTraces_ = java.util.Collections.emptyList();
-
+    private java.util.List warningTraces_ =
+      java.util.Collections.emptyList();
     private void ensureWarningTracesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        warningTraces_ =
-            new java.util.ArrayList(
-                warningTraces_);
+        warningTraces_ = new java.util.ArrayList(warningTraces_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>
-        warningTracesBuilder_;
+        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> warningTracesBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List - getWarningTracesList() { + public java.util.List getWarningTracesList() { if (warningTracesBuilder_ == null) { return java.util.Collections.unmodifiableList(warningTraces_); } else { @@ -2730,15 +2381,11 @@ private void ensureWarningTracesIsMutable() { } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public int getWarningTracesCount() { if (warningTracesBuilder_ == null) { @@ -2748,18 +2395,13 @@ public int getWarningTracesCount() { } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces(int index) { if (warningTracesBuilder_ == null) { return warningTraces_.get(index); } else { @@ -2767,15 +2409,11 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarning } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder setWarningTraces( int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { @@ -2792,19 +2430,14 @@ public Builder setWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder setWarningTraces( - int index, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.set(index, builderForValue.build()); @@ -2815,18 +2448,13 @@ public Builder setWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public Builder addWarningTraces( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { + public Builder addWarningTraces(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { if (warningTracesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2840,15 +2468,11 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { @@ -2865,15 +2489,11 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { @@ -2887,19 +2507,14 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( - int index, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.add(index, builderForValue.build()); @@ -2910,22 +2525,18 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder addAllWarningTraces( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warningTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warningTraces_); onChanged(); } else { warningTracesBuilder_.addAllMessages(values); @@ -2933,15 +2544,11 @@ public Builder addAllWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder clearWarningTraces() { if (warningTracesBuilder_ == null) { @@ -2954,15 +2561,11 @@ public Builder clearWarningTraces() { return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder removeWarningTraces(int index) { if (warningTracesBuilder_ == null) { @@ -2975,53 +2578,39 @@ public Builder removeWarningTraces(int index) { return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder - getWarningTracesBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder getWarningTracesBuilder( + int index) { return getWarningTracesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder - getWarningTracesOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( + int index) { if (warningTracesBuilder_ == null) { - return warningTraces_.get(index); - } else { + return warningTraces_.get(index); } else { return warningTracesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> - getWarningTracesOrBuilderList() { + public java.util.List + getWarningTracesOrBuilderList() { if (warningTracesBuilder_ != null) { return warningTracesBuilder_.getMessageOrBuilderList(); } else { @@ -3029,67 +2618,45 @@ public Builder removeWarningTraces(int index) { } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder - addWarningTracesBuilder() { - return getWarningTracesFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder addWarningTracesBuilder() { + return getWarningTracesFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder - addWarningTracesBuilder(int index) { - return getWarningTracesFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder addWarningTracesBuilder( + int index) { + return getWarningTracesFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List - getWarningTracesBuilderList() { + public java.util.List + getWarningTracesBuilderList() { return getWarningTracesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> getWarningTracesFieldBuilder() { if (warningTracesBuilder_ == null) { - warningTracesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>( + warningTracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>( warningTraces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3098,9 +2665,9 @@ public Builder removeWarningTraces(int index) { } return warningTracesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3110,12 +2677,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanRun) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRun) private static final com.google.cloud.websecurityscanner.v1beta.ScanRun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanRun(); } @@ -3124,16 +2691,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanRun getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3148,4 +2715,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java index dc3d2c51..04999bce 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Output only.
  * Defines an error trace message for a ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace}
  */
-public final class ScanRunErrorTrace extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRunErrorTrace extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)
     ScanRunErrorTraceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRunErrorTrace.newBuilder() to construct.
   private ScanRunErrorTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRunErrorTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunErrorTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRunErrorTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,42 +54,37 @@ private ScanRunErrorTrace(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder subBuilder = null;
-              if (scanConfigError_ != null) {
-                subBuilder = scanConfigError_.toBuilder();
-              }
-              scanConfigError_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.ScanConfigError.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(scanConfigError_);
-                scanConfigError_ = subBuilder.buildPartial();
-              }
-
-              break;
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder subBuilder = null;
+            if (scanConfigError_ != null) {
+              subBuilder = scanConfigError_.toBuilder();
             }
-          case 24:
-            {
-              mostCommonHttpErrorCode_ = input.readInt32();
-              break;
+            scanConfigError_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfigError.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scanConfigError_);
+              scanConfigError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 24: {
+
+            mostCommonHttpErrorCode_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -114,31 +92,27 @@ private ScanRunErrorTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -147,10 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -159,8 +132,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -169,8 +140,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ INTERNAL_ERROR(1), /** - * - * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -180,8 +149,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCAN_CONFIG_ISSUE(2),
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -191,8 +158,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     AUTHENTICATION_CONFIG_ISSUE(3),
     /**
-     *
-     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -201,8 +166,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TIMED_OUT_WHILE_SCANNING(4), /** - * - * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -212,8 +175,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_REDIRECTS(5),
     /**
-     *
-     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -227,8 +188,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -237,8 +196,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -247,8 +204,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERNAL_ERROR_VALUE = 1; /** - * - * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -258,8 +213,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SCAN_CONFIG_ISSUE_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -269,8 +222,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int AUTHENTICATION_CONFIG_ISSUE_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -279,8 +230,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIMED_OUT_WHILE_SCANNING_VALUE = 4; /** - * - * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -290,8 +239,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_REDIRECTS_VALUE = 5;
     /**
-     *
-     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -302,6 +249,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_HTTP_ERRORS_VALUE = 6;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -326,59 +274,53 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0:
-          return CODE_UNSPECIFIED;
-        case 1:
-          return INTERNAL_ERROR;
-        case 2:
-          return SCAN_CONFIG_ISSUE;
-        case 3:
-          return AUTHENTICATION_CONFIG_ISSUE;
-        case 4:
-          return TIMED_OUT_WHILE_SCANNING;
-        case 5:
-          return TOO_MANY_REDIRECTS;
-        case 6:
-          return TOO_MANY_HTTP_ERRORS;
-        default:
-          return null;
+        case 0: return CODE_UNSPECIFIED;
+        case 1: return INTERNAL_ERROR;
+        case 2: return SCAN_CONFIG_ISSUE;
+        case 3: return AUTHENTICATION_CONFIG_ISSUE;
+        case 4: return TIMED_OUT_WHILE_SCANNING;
+        case 5: return TOO_MANY_REDIRECTS;
+        case 6: return TOO_MANY_HTTP_ERRORS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Code> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Code findValueByNumber(int number) {
+              return Code.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Code findValueByNumber(int number) {
-            return Code.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -398,46 +340,33 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
-   *
-   *
    * 
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED : result; } public static final int SCAN_CONFIG_ERROR_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1beta.ScanConfigError scanConfigError_; /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -445,7 +374,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ @java.lang.Override @@ -453,8 +381,6 @@ public boolean hasScanConfigError() { return scanConfigError_ != null; } /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -462,18 +388,13 @@ public boolean hasScanConfigError() {
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError() { - return scanConfigError_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() - : scanConfigError_; + return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_; } /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -483,16 +404,13 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
    * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder
-      getScanConfigErrorOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
     return getScanConfigError();
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_;
   /**
-   *
-   *
    * 
    * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -500,7 +418,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -509,7 +426,6 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,10 +437,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (scanConfigError_ != null) { @@ -542,16 +457,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (scanConfigError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfigError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfigError()); } if (mostCommonHttpErrorCode_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mostCommonHttpErrorCode_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, mostCommonHttpErrorCode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -561,20 +477,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace other = - (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) obj; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace other = (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) obj; if (code_ != other.code_) return false; if (hasScanConfigError() != other.hasScanConfigError()) return false; if (hasScanConfigError()) { - if (!getScanConfigError().equals(other.getScanConfigError())) return false; + if (!getScanConfigError() + .equals(other.getScanConfigError())) return false; } - if (getMostCommonHttpErrorCode() != other.getMostCommonHttpErrorCode()) return false; + if (getMostCommonHttpErrorCode() + != other.getMostCommonHttpErrorCode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -600,104 +517,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output only.
    * Defines an error trace message for a ScanRun.
@@ -705,23 +614,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)
       com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class,
-              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder()
@@ -729,15 +636,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -755,14 +663,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance();
     }
 
@@ -777,8 +684,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result =
-          new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result = new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(this);
       result.code_ = code_;
       if (scanConfigErrorBuilder_ == null) {
         result.scanConfigError_ = scanConfigError_;
@@ -794,39 +700,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -834,9 +739,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -865,8 +768,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -878,93 +780,73 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code value) { + public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -972,13 +854,8 @@ public Builder clearCode() { private com.google.cloud.websecurityscanner.v1beta.ScanConfigError scanConfigError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfigError, - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder> - scanConfigErrorBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder> scanConfigErrorBuilder_; /** - * - * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -986,15 +863,12 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return scanConfigErrorBuilder_ != null || scanConfigError_ != null; } /** - * - * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1002,21 +876,16 @@ public boolean hasScanConfigError() {
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError() { if (scanConfigErrorBuilder_ == null) { - return scanConfigError_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() - : scanConfigError_; + return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_; } else { return scanConfigErrorBuilder_.getMessage(); } } /** - * - * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1025,8 +894,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public Builder setScanConfigError(
-        com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
+    public Builder setScanConfigError(com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1040,8 +908,6 @@ public Builder setScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1062,8 +928,6 @@ public Builder setScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1072,15 +936,11 @@ public Builder setScanConfigError(
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public Builder mergeScanConfigError(
-        com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
+    public Builder mergeScanConfigError(com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (scanConfigError_ != null) {
           scanConfigError_ =
-              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder(
-                      scanConfigError_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder(scanConfigError_).mergeFrom(value).buildPartial();
         } else {
           scanConfigError_ = value;
         }
@@ -1092,8 +952,6 @@ public Builder mergeScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1114,8 +972,6 @@ public Builder clearScanConfigError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1124,15 +980,12 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder
-        getScanConfigErrorBuilder() {
-
+    public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder getScanConfigErrorBuilder() {
+      
       onChanged();
       return getScanConfigErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1141,19 +994,15 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder
-        getScanConfigErrorOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
       if (scanConfigErrorBuilder_ != null) {
         return scanConfigErrorBuilder_.getMessageOrBuilder();
       } else {
-        return scanConfigError_ == null
-            ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()
-            : scanConfigError_;
+        return scanConfigError_ == null ?
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_;
       }
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1163,26 +1012,21 @@ public Builder clearScanConfigError() {
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError,
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder,
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder>
+        com.google.cloud.websecurityscanner.v1beta.ScanConfigError, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder> 
         getScanConfigErrorFieldBuilder() {
       if (scanConfigErrorBuilder_ == null) {
-        scanConfigErrorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1beta.ScanConfigError,
-                com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder,
-                com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder>(
-                getScanConfigError(), getParentForChildren(), isClean());
+        scanConfigErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder>(
+                getScanConfigError(),
+                getParentForChildren(),
+                isClean());
         scanConfigError_ = null;
       }
       return scanConfigErrorBuilder_;
     }
 
-    private int mostCommonHttpErrorCode_;
+    private int mostCommonHttpErrorCode_ ;
     /**
-     *
-     *
      * 
      * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1190,7 +1034,6 @@ public Builder clearScanConfigError() {
      * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1198,8 +1041,6 @@ public int getMostCommonHttpErrorCode() { return mostCommonHttpErrorCode_; } /** - * - * *
      * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1207,19 +1048,16 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; - * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ public Builder setMostCommonHttpErrorCode(int value) { - + mostCommonHttpErrorCode_ = value; onChanged(); return this; } /** - * - * *
      * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1227,18 +1065,17 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; - * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { - + mostCommonHttpErrorCode_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1248,13 +1085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) - private static final com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(); } @@ -1263,16 +1099,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunErrorTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunErrorTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunErrorTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunErrorTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1287,4 +1123,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java index 3a923586..abfe6d8c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java @@ -1,56 +1,32 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanRunErrorTraceOrBuilder - extends +public interface ScanRunErrorTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode(); /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -58,13 +34,10 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ boolean hasScanConfigError(); /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -72,13 +45,10 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError(); /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -90,8 +60,6 @@ public interface ScanRunErrorTraceOrBuilder
   com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -99,7 +67,6 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ int getMostCommonHttpErrorCode(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java new file mode 100644 index 00000000..39dd06a4 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanRunErrorTraceProto { + private ScanRunErrorTraceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/websecurityscanner/v1beta" + + "/scan_run_error_trace.proto\022&google.clou" + + "d.websecurityscanner.v1beta\032>google/clou" + + "d/websecurityscanner/v1beta/scan_config_" + + "error.proto\"\225\003\n\021ScanRunErrorTrace\022L\n\004cod" + + "e\030\001 \001(\0162>.google.cloud.websecurityscanne" + + "r.v1beta.ScanRunErrorTrace.Code\022R\n\021scan_" + + "config_error\030\002 \001(\01327.google.cloud.websec" + + "urityscanner.v1beta.ScanConfigError\022#\n\033m" + + "ost_common_http_error_code\030\003 \001(\005\"\270\001\n\004Cod" + + "e\022\024\n\020CODE_UNSPECIFIED\020\000\022\022\n\016INTERNAL_ERRO" + + "R\020\001\022\025\n\021SCAN_CONFIG_ISSUE\020\002\022\037\n\033AUTHENTICA" + + "TION_CONFIG_ISSUE\020\003\022\034\n\030TIMED_OUT_WHILE_S" + + "CANNING\020\004\022\026\n\022TOO_MANY_REDIRECTS\020\005\022\030\n\024TOO" + + "_MANY_HTTP_ERRORS\020\006B\236\002\n*com.google.cloud" + + ".websecurityscanner.v1betaB\026ScanRunError" + + "TraceProtoP\001ZXgoogle.golang.org/genproto" + + "/googleapis/cloud/websecurityscanner/v1b" + + "eta;websecurityscanner\252\002&Google.Cloud.We" + + "bSecurityScanner.V1Beta\312\002&Google\\Cloud\\W" + + "ebSecurityScanner\\V1beta\352\002)Google::Cloud" + + "::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor, + new java.lang.String[] { "Code", "ScanConfigError", "MostCommonHttpErrorCode", }); + com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java similarity index 84% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java index c696f8a2..f5758513 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_run.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanRunOrBuilder - extends +public interface ScanRunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -33,13 +15,10 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -47,92 +26,70 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState(); /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState(); /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -142,34 +99,26 @@ public interface ScanRunOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -180,22 +129,17 @@ public interface ScanRunOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** - * - * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -204,27 +148,21 @@ public interface ScanRunOrBuilder
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ boolean getHasVulnerabilities(); /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -233,40 +171,31 @@ public interface ScanRunOrBuilder
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ boolean hasErrorTrace(); /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrace(); /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -277,60 +206,45 @@ public interface ScanRunOrBuilder
   com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder();
 
   /**
-   *
-   *
    * 
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - java.util.List + java.util.List getWarningTracesList(); /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces(int index); /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ int getWarningTracesCount(); /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - java.util.List + java.util.List getWarningTracesOrBuilderList(); /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( int index); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java new file mode 100644 index 00000000..3768b129 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_run.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanRunProto { + private ScanRunProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/websecurityscanner/v1beta" + + "/scan_run.proto\022&google.cloud.websecurit" + + "yscanner.v1beta\032\031google/api/resource.pro" + + "to\032Agoogle/cloud/websecurityscanner/v1be" + + "ta/scan_run_error_trace.proto\032Cgoogle/cl" + + "oud/websecurityscanner/v1beta/scan_run_w" + + "arning_trace.proto\032\037google/protobuf/time" + + "stamp.proto\"\322\006\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022W\n" + + "\017execution_state\030\002 \001(\0162>.google.cloud.we" + + "bsecurityscanner.v1beta.ScanRun.Executio" + + "nState\022Q\n\014result_state\030\003 \001(\0162;.google.cl" + + "oud.websecurityscanner.v1beta.ScanRun.Re" + + "sultState\022.\n\nstart_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022\032\n\022urls_crawled_" + + "count\030\006 \001(\003\022\031\n\021urls_tested_count\030\007 \001(\003\022\033" + + "\n\023has_vulnerabilities\030\010 \001(\010\022\030\n\020progress_" + + "percent\030\t \001(\005\022N\n\013error_trace\030\n \001(\01329.goo" + + "gle.cloud.websecurityscanner.v1beta.Scan" + + "RunErrorTrace\022S\n\016warning_traces\030\013 \003(\0132;." + + "google.cloud.websecurityscanner.v1beta.S" + + "canRunWarningTrace\"Y\n\016ExecutionState\022\037\n\033" + + "EXECUTION_STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020" + + "\001\022\014\n\010SCANNING\020\002\022\014\n\010FINISHED\020\003\"O\n\013ResultS" + + "tate\022\034\n\030RESULT_STATE_UNSPECIFIED\020\000\022\013\n\007SU" + + "CCESS\020\001\022\t\n\005ERROR\020\002\022\n\n\006KILLED\020\003:p\352Am\n)web" + + "securityscanner.googleapis.com/ScanRun\022@" + + "projects/{project}/scanConfigs/{scan_con" + + "fig}/scanRuns/{scan_run}B\224\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\014ScanRun" + + "ProtoP\001ZXgoogle.golang.org/genproto/goog" + + "leapis/cloud/websecurityscanner/v1beta;w" + + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" + + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" + + "urityScanner\\V1beta\352\002)Google::Cloud::Web" + + "SecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor, + new java.lang.String[] { "Name", "ExecutionState", "ResultState", "StartTime", "EndTime", "UrlsCrawledCount", "UrlsTestedCount", "HasVulnerabilities", "ProgressPercent", "ErrorTrace", "WarningTraces", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java index 092ab948..778e0f72 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Output only.
  * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace}
  */
-public final class ScanRunWarningTrace extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRunWarningTrace extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)
     ScanRunWarningTraceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRunWarningTrace.newBuilder() to construct.
   private ScanRunWarningTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRunWarningTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunWarningTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRunWarningTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,20 +55,19 @@ private ScanRunWarningTrace(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            code_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,31 +75,27 @@ private ScanRunWarningTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines a warning message code.
@@ -126,10 +104,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -138,8 +115,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -150,8 +125,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     INSUFFICIENT_CRAWL_RESULTS(1),
     /**
-     *
-     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -161,8 +134,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_CRAWL_RESULTS(2),
     /**
-     *
-     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -173,8 +144,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -186,8 +155,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value is never used.
      * 
@@ -196,8 +163,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -208,8 +173,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INSUFFICIENT_CRAWL_RESULTS_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -219,8 +182,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_CRAWL_RESULTS_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -231,8 +192,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_FUZZ_TASKS_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -241,6 +200,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BLOCKED_BY_IAP_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -265,55 +225,51 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return INSUFFICIENT_CRAWL_RESULTS; - case 2: - return TOO_MANY_CRAWL_RESULTS; - case 3: - return TOO_MANY_FUZZ_TASKS; - case 4: - return BLOCKED_BY_IAP; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return INSUFFICIENT_CRAWL_RESULTS; + case 2: return TOO_MANY_CRAWL_RESULTS; + case 3: return TOO_MANY_FUZZ_TASKS; + case 4: return BLOCKED_BY_IAP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -333,43 +289,31 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,10 +325,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } unknownFields.writeTo(output); @@ -396,10 +339,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,13 +351,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace other = - (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) obj; + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace other = (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -437,104 +378,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output only.
    * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -543,23 +476,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)
       com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class,
-              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.newBuilder()
@@ -567,15 +498,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -585,14 +517,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance();
     }
 
@@ -607,8 +538,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result =
-          new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result = new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(this);
       result.code_ = code_;
       onBuilt();
       return result;
@@ -618,39 +548,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -658,9 +587,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -683,9 +610,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -697,100 +622,80 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code value) { + public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -800,32 +705,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) - private static final com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunWarningTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunWarningTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunWarningTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunWarningTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,8 +740,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java index 2a1da0d3..80d1a309 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java @@ -1,49 +1,27 @@ -/* - * 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/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanRunWarningTraceOrBuilder - extends +public interface ScanRunWarningTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java new file mode 100644 index 00000000..4e6cfa02 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanRunWarningTraceProto { + private ScanRunWarningTraceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nCgoogle/cloud/websecurityscanner/v1beta" + + "/scan_run_warning_trace.proto\022&google.cl" + + "oud.websecurityscanner.v1beta\"\355\001\n\023ScanRu" + + "nWarningTrace\022N\n\004code\030\001 \001(\0162@.google.clo" + + "ud.websecurityscanner.v1beta.ScanRunWarn" + + "ingTrace.Code\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFI" + + "ED\020\000\022\036\n\032INSUFFICIENT_CRAWL_RESULTS\020\001\022\032\n\026" + + "TOO_MANY_CRAWL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZ" + + "Z_TASKS\020\003\022\022\n\016BLOCKED_BY_IAP\020\004B\240\002\n*com.go" + + "ogle.cloud.websecurityscanner.v1betaB\030Sc" + + "anRunWarningTraceProtoP\001ZXgoogle.golang." + + "org/genproto/googleapis/cloud/websecurit" + + "yscanner/v1beta;websecurityscanner\252\002&Goo" + + "gle.Cloud.WebSecurityScanner.V1Beta\312\002&Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)G" + + "oogle::Cloud::WebSecurityScanner::V1beta" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java index a4ad4fdf..46f53c94 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `StartScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StartScanRunRequest} */ -public final class StartScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) StartScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartScanRunRequest.newBuilder() to construct. private StartScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StartScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private StartScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest other = - (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest other = (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StartScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StartScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) com.google.cloud.websecurityscanner.v1beta.StartScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result = - new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(this); + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -659,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java new file mode 100644 index 00000000..ad91dfc0 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface StartScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java index 970b36c4..b92e6094 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `StopScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StopScanRunRequest} */ -public final class StopScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) StopScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopScanRunRequest.newBuilder() to construct. private StopScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StopScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private StopScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest other = - (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest other = (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StopScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StopScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) com.google.cloud.websecurityscanner.v1beta.StopScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result = - new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(this); + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(); } @@ -644,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java new file mode 100644 index 00000000..451ee9bd --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface StopScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java index 9488505a..073bd532 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java @@ -1,55 +1,39 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `UpdateScanConfigRequest` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest} */ -public final class UpdateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) UpdateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateScanConfigRequest.newBuilder() to construct. private UpdateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateScanConfigRequest() {} + private UpdateScanConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateScanConfigRequest( case 0: done = true; break; - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,43 +92,36 @@ private UpdateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); } public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -158,38 +129,27 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -199,17 +159,13 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -217,17 +173,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -235,16 +187,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -252,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scanConfig_ != null) { output.writeMessage(2, getScanConfig()); } @@ -281,10 +230,12 @@ public int getSerializedSize() { size = 0; if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,21 +245,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) obj; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -335,145 +287,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `UpdateScanConfigRequest` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,16 +434,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -516,8 +455,7 @@ public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(this); if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; } else { @@ -536,51 +474,46 @@ public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.getDefaultInstance()) return this; if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } @@ -606,9 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,64 +551,45 @@ public Builder mergeFrom( private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -693,17 +605,13 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConf return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder builderForValue) { @@ -717,25 +625,19 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -747,17 +649,13 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanCo return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -771,70 +669,54 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; @@ -842,61 +724,45 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -912,18 +778,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -934,22 +798,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -961,16 +822,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -984,74 +842,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1061,32 +906,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1098,8 +941,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java index c43f86ea..64762742 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java @@ -1,116 +1,75 @@ -/* - * 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/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface UpdateScanConfigRequestOrBuilder - extends +public interface UpdateScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java index bd7f2cac..796dc53d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java @@ -1,26 +1,9 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information regarding any resource causing the vulnerability such
  * as JavaScript sources, image, audio files, etc.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ViolatingResource}
  */
-public final class ViolatingResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ViolatingResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ViolatingResource)
     ViolatingResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ViolatingResource.newBuilder() to construct.
   private ViolatingResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ViolatingResource() {
     contentType_ = "";
     resourceUrl_ = "";
@@ -45,15 +27,16 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ViolatingResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private ViolatingResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              contentType_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            contentType_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceUrl_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            resourceUrl_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +81,34 @@ private ViolatingResource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class,
-            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
   }
 
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object contentType_;
   /**
-   *
-   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ @java.lang.Override @@ -141,29 +117,29 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -174,14 +150,11 @@ public com.google.protobuf.ByteString getContentTypeBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object resourceUrl_; /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ @java.lang.Override @@ -190,29 +163,29 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -221,7 +194,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -263,16 +236,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ViolatingResource)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ViolatingResource other = - (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) obj; + com.google.cloud.websecurityscanner.v1beta.ViolatingResource other = (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) obj; - if (!getContentType().equals(other.getContentType())) return false; - if (!getResourceUrl().equals(other.getResourceUrl())) return false; + if (!getContentType() + .equals(other.getContentType())) return false; + if (!getResourceUrl() + .equals(other.getResourceUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +268,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ViolatingResource prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ViolatingResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information regarding any resource causing the vulnerability such
    * as JavaScript sources, image, audio files, etc.
@@ -399,23 +365,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ViolatingResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ViolatingResource)
       com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class,
-              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder()
@@ -423,15 +387,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -443,14 +408,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1beta.ViolatingResource
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance();
     }
 
@@ -465,8 +429,7 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ViolatingResource buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ViolatingResource result =
-          new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(this);
+      com.google.cloud.websecurityscanner.v1beta.ViolatingResource result = new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(this);
       result.contentType_ = contentType_;
       result.resourceUrl_ = resourceUrl_;
       onBuilt();
@@ -477,39 +440,38 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ViolatingResource) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ViolatingResource) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ViolatingResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,9 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ViolatingResource other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance()) return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -547,8 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -560,20 +519,18 @@ public Builder mergeFrom(
 
     private java.lang.Object contentType_ = "";
     /**
-     *
-     *
      * 
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; @@ -582,21 +539,20 @@ public java.lang.String getContentType() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -604,61 +560,54 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType(java.lang.String value) { + public Builder setContentType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -666,20 +615,18 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -688,21 +635,20 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -710,68 +656,61 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -781,13 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ViolatingResource) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ViolatingResource) - private static final com.google.cloud.websecurityscanner.v1beta.ViolatingResource - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ViolatingResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(); } @@ -796,16 +734,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViolatingResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolatingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ViolatingResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -820,4 +758,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java index 584227ed..4021d228 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ViolatingResourceOrBuilder - extends +public interface ViolatingResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ViolatingResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ java.lang.String getContentType(); /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - com.google.protobuf.ByteString getContentTypeBytes(); + com.google.protobuf.ByteString + getContentTypeBytes(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java similarity index 65% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java index 42d98b35..32ee8c3a 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information about vulnerable or missing HTTP Headers.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders} */ -public final class VulnerableHeaders extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableHeaders extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) VulnerableHeadersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableHeaders.newBuilder() to construct. private VulnerableHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableHeaders() { headers_ = java.util.Collections.emptyList(); missingHeaders_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableHeaders(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableHeaders( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,41 +55,31 @@ private VulnerableHeaders( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000002; - } - missingHeaders_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + headers_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingHeaders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + missingHeaders_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,7 +87,8 @@ private VulnerableHeaders( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -126,96 +100,79 @@ private VulnerableHeaders( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); } - public interface HeaderOrBuilder - extends + public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * Describes a HTTP Header.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header} */ - public static final class Header extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Header extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Header() { name_ = ""; value_ = ""; @@ -223,15 +180,16 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -250,27 +208,25 @@ private Header( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -278,39 +234,34 @@ private Header( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -319,29 +270,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -352,14 +303,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -368,29 +316,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -399,7 +347,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,7 +358,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -441,16 +389,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) obj; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,95 +421,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -570,49 +511,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes a HTTP Header.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -624,16 +560,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance(); } @java.lang.Override @@ -647,8 +581,7 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header build @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header buildPartial() { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result = - new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(this); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -659,53 +592,46 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other) { + if (other == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -733,9 +659,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -747,20 +671,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -769,21 +691,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -791,61 +712,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -853,20 +767,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -875,21 +787,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -897,66 +808,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -969,32 +872,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) - private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -1006,176 +907,133 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HEADERS_FIELD_NUMBER = 1; - private java.util.List - headers_; + private java.util.List headers_; /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getHeadersOrBuilderList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders(int index) { return headers_.get(index); } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { return headers_.get(index); } public static final int MISSING_HEADERS_FIELD_NUMBER = 2; - private java.util.List - missingHeaders_; + private java.util.List missingHeaders_; /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getMissingHeadersOrBuilderList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override public int getMissingHeadersCount() { return missingHeaders_.size(); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders(int index) { return missingHeaders_.get(index); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { return missingHeaders_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1187,7 +1045,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } @@ -1204,10 +1063,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, headers_.get(i)); } for (int i = 0; i < missingHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, missingHeaders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1217,16 +1078,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders other = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) obj; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders other = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) obj; - if (!getHeadersList().equals(other.getHeadersList())) return false; - if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; + if (!getHeadersList() + .equals(other.getHeadersList())) return false; + if (!getMissingHeadersList() + .equals(other.getMissingHeadersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1252,127 +1114,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable or missing HTTP Headers.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder() @@ -1380,18 +1232,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHeadersFieldBuilder(); getMissingHeadersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1411,14 +1263,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance(); } @@ -1433,8 +1284,7 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders buildPartial() { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result = - new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders(this); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1462,39 +1312,38 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders)other); } else { super.mergeFrom(other); return this; @@ -1502,9 +1351,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance()) return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { @@ -1523,10 +1370,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHe headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHeadersFieldBuilder() - : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -1550,10 +1396,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHe missingHeadersBuilder_ = null; missingHeaders_ = other.missingHeaders_; bitField0_ = (bitField0_ & ~0x00000002); - missingHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMissingHeadersFieldBuilder() - : null; + missingHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMissingHeadersFieldBuilder() : null; } else { missingHeadersBuilder_.addAllMessages(other.missingHeaders_); } @@ -1578,8 +1423,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1588,39 +1432,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - headers_ = java.util.Collections.emptyList(); - + private java.util.List headers_ = + java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(headers_); + headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> - headersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> headersBuilder_; /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { @@ -1628,14 +1461,11 @@ private void ensureHeadersIsMutable() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public int getHeadersCount() { if (headersBuilder_ == null) { @@ -1645,17 +1475,13 @@ public int getHeadersCount() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders(int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { @@ -1663,14 +1489,11 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHe } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -1687,19 +1510,14 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( - int index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); @@ -1710,17 +1528,13 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public Builder addHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { + public Builder addHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1734,14 +1548,11 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -1758,18 +1569,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1780,19 +1587,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - int index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); @@ -1803,22 +1605,18 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder addAllHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1826,14 +1624,11 @@ public Builder addAllHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder clearHeaders() { if (headersBuilder_ == null) { @@ -1846,14 +1641,11 @@ public Builder clearHeaders() { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { @@ -1866,50 +1658,39 @@ public Builder removeHeaders(int index) { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - getHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder getHeadersBuilder( + int index) { return getHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { if (headersBuilder_ == null) { - return headers_.get(index); - } else { + return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1917,105 +1698,74 @@ public Builder removeHeaders(int index) { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - addHeadersBuilder() { - return getHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addHeadersBuilder() { + return getHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - addHeadersBuilder(int index) { - return getHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addHeadersBuilder( + int index) { + return getHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder> - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( - headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( + headers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); headers_ = null; } return headersBuilder_; } - private java.util.List - missingHeaders_ = java.util.Collections.emptyList(); - + private java.util.List missingHeaders_ = + java.util.Collections.emptyList(); private void ensureMissingHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>( - missingHeaders_); + missingHeaders_ = new java.util.ArrayList(missingHeaders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> - missingHeadersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> missingHeadersBuilder_; /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { if (missingHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(missingHeaders_); } else { @@ -2023,15 +1773,11 @@ private void ensureMissingHeadersIsMutable() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public int getMissingHeadersCount() { if (missingHeadersBuilder_ == null) { @@ -2041,18 +1787,13 @@ public int getMissingHeadersCount() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { return missingHeaders_.get(index); } else { @@ -2060,15 +1801,11 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMi } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -2085,20 +1822,14 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.set(index, builderForValue.build()); @@ -2109,18 +1840,13 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { + public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { if (missingHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2134,15 +1860,11 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -2159,19 +1881,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(builderForValue.build()); @@ -2182,20 +1899,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(index, builderForValue.build()); @@ -2206,23 +1917,18 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder addAllMissingHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingHeaders_); onChanged(); } else { missingHeadersBuilder_.addAllMessages(values); @@ -2230,15 +1936,11 @@ public Builder addAllMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder clearMissingHeaders() { if (missingHeadersBuilder_ == null) { @@ -2251,15 +1953,11 @@ public Builder clearMissingHeaders() { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder removeMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { @@ -2272,53 +1970,39 @@ public Builder removeMissingHeaders(int index) { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - getMissingHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder getMissingHeadersBuilder( + int index) { return getMissingHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { if (missingHeadersBuilder_ == null) { - return missingHeaders_.get(index); - } else { + return missingHeaders_.get(index); } else { return missingHeadersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> - getMissingHeadersOrBuilderList() { + public java.util.List + getMissingHeadersOrBuilderList() { if (missingHeadersBuilder_ != null) { return missingHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -2326,70 +2010,45 @@ public Builder removeMissingHeaders(int index) { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder() { - return getMissingHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addMissingHeadersBuilder() { + return getMissingHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder(int index) { - return getMissingHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addMissingHeadersBuilder( + int index) { + return getMissingHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder> - getMissingHeadersBuilderList() { + public java.util.List + getMissingHeadersBuilderList() { return getMissingHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersFieldBuilder() { if (missingHeadersBuilder_ == null) { - missingHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( + missingHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( missingHeaders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2398,9 +2057,9 @@ public Builder removeMissingHeaders(int index) { } return missingHeadersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2410,13 +2069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) - private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders(); } @@ -2425,16 +2083,16 @@ public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableHeaders parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableHeaders(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2449,4 +2107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java similarity index 51% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java index b6c66563..9bdd7c49 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java @@ -1,150 +1,97 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface VulnerableHeadersOrBuilder - extends +public interface VulnerableHeadersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - java.util.List + java.util.List getHeadersList(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders(int index); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ int getHeadersCount(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + java.util.List getHeadersOrBuilderList(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List + java.util.List getMissingHeadersList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders(int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ int getMissingHeadersCount(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + java.util.List getMissingHeadersOrBuilderList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java index 03debcf3..4bcf5ded 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java @@ -1,57 +1,40 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information about vulnerable request parameters.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableParameters} */ -public final class VulnerableParameters extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableParameters extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.VulnerableParameters) VulnerableParametersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableParameters.newBuilder() to construct. private VulnerableParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableParameters() { parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private VulnerableParameters( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameterNames_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parameterNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private VulnerableParameters( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -104,61 +87,50 @@ private VulnerableParameters( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); } public static final int PARAMETER_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList parameterNames_; /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_; } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -166,23 +138,20 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } @@ -223,15 +193,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableParameters)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other = - (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) obj; + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other = (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) obj; - if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; + if (!getParameterNamesList() + .equals(other.getParameterNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,127 +223,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable request parameters.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableParameters} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.VulnerableParameters) com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder() @@ -381,15 +341,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -399,14 +360,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance(); } @@ -421,8 +381,7 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters buildPartial() { - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result = - new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(this); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -437,50 +396,46 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableParameters)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other) { + if (other == com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance()) return this; if (!other.parameterNames_.isEmpty()) { if (parameterNames_.isEmpty()) { parameterNames_ = other.parameterNames_; @@ -510,9 +465,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,55 +474,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList parameterNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureParameterNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_.getUnmodifiableView(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -577,90 +519,80 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index to set the value at. * @param value The parameterNames to set. * @return This builder for chaining. */ - public Builder setParameterNames(int index, java.lang.String value) { + public Builder setParameterNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNames(java.lang.String value) { + public Builder addParameterNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param values The parameterNames to add. * @return This builder for chaining. */ - public Builder addAllParameterNames(java.lang.Iterable values) { + public Builder addAllParameterNames( + java.lang.Iterable values) { ensureParameterNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameterNames_); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return This builder for chaining. */ public Builder clearParameterNames() { @@ -670,30 +602,28 @@ public Builder clearParameterNames() { return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The bytes of the parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { + public Builder addParameterNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -703,32 +633,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.VulnerableParameters) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableParameters) - private static final com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.VulnerableParameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,8 +668,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java index e8516b30..c79d07da 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java @@ -1,76 +1,50 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface VulnerableParametersOrBuilder - extends +public interface VulnerableParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.VulnerableParameters) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - java.util.List getParameterNamesList(); + java.util.List + getParameterNamesList(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ int getParameterNamesCount(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ java.lang.String getParameterNames(int index); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - com.google.protobuf.ByteString getParameterNamesBytes(int index); + com.google.protobuf.ByteString + getParameterNamesBytes(int index); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java new file mode 100644 index 00000000..696f0e6e --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java @@ -0,0 +1,410 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class WebSecurityScannerProto { + private WebSecurityScannerProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/websecurityscanner/v1beta" + + "/web_security_scanner.proto\022&google.clou" + + "d.websecurityscanner.v1beta\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\0328google/cloud/web" + + "securityscanner/v1beta/crawled_url.proto" + + "\0324google/cloud/websecurityscanner/v1beta" + + "/finding.proto\032?google/cloud/websecurity" + + "scanner/v1beta/finding_type_stats.proto\032" + + "8google/cloud/websecurityscanner/v1beta/" + + "scan_config.proto\0325google/cloud/websecur" + + "ityscanner/v1beta/scan_run.proto\032\033google" + + "/protobuf/empty.proto\032 google/protobuf/f" + + "ield_mask.proto\"\254\001\n\027CreateScanConfigRequ" + + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + + "cemanager.googleapis.com/Project\022L\n\013scan" + + "_config\030\002 \001(\01322.google.cloud.websecurity" + + "scanner.v1beta.ScanConfigB\003\340A\002\"]\n\027Delete" + + "ScanConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n" + + ",websecurityscanner.googleapis.com/ScanC" + + "onfig\"Z\n\024GetScanConfigRequest\022B\n\004name\030\001 " + + "\001(\tB4\340A\002\372A.\n,websecurityscanner.googleap" + + "is.com/ScanConfig\"\204\001\n\026ListScanConfigsReq" + + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022\022\n\npag" + + "e_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\235\001\n\027Upd" + + "ateScanConfigRequest\022L\n\013scan_config\030\002 \001(" + + "\01322.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfigB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\027List" + + "ScanConfigsResponse\022H\n\014scan_configs\030\001 \003(" + + "\01322.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfig\022\027\n\017next_page_token\030\002 \001(\t\"Y" + + "\n\023StartScanRunRequest\022B\n\004name\030\001 \001(\tB4\340A\002" + + "\372A.\n,websecurityscanner.googleapis.com/S" + + "canConfig\"T\n\021GetScanRunRequest\022?\n\004name\030\001" + + " \001(\tB1\340A\002\372A+\n)websecurityscanner.googlea" + + "pis.com/ScanRun\"\202\001\n\023ListScanRunsRequest\022" + + "D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,websecurityscan" + + "ner.googleapis.com/ScanConfig\022\022\n\npage_to" + + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"s\n\024ListScan" + + "RunsResponse\022B\n\tscan_runs\030\001 \003(\0132/.google" + + ".cloud.websecurityscanner.v1beta.ScanRun" + + "\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022StopScanRun" + + "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuri" + + "tyscanner.googleapis.com/ScanRun\"\202\001\n\026Lis" + + "tCrawledUrlsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002" + + "\372A+\n)websecurityscanner.googleapis.com/S" + + "canRun\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" + + "\003 \001(\005\"|\n\027ListCrawledUrlsResponse\022H\n\014craw" + + "led_urls\030\001 \003(\01322.google.cloud.websecurit" + + "yscanner.v1beta.CrawledUrl\022\027\n\017next_page_" + + "token\030\002 \001(\t\"T\n\021GetFindingRequest\022?\n\004name" + + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + + "eapis.com/Finding\"\224\001\n\023ListFindingsReques" + + "t\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websecuritysc" + + "anner.googleapis.com/ScanRun\022\023\n\006filter\030\002" + + " \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_si" + + "ze\030\004 \001(\005\"r\n\024ListFindingsResponse\022A\n\010find" + + "ings\030\001 \003(\0132/.google.cloud.websecuritysca" + + "nner.v1beta.Finding\022\027\n\017next_page_token\030\002" + + " \001(\t\"`\n\033ListFindingTypeStatsRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner." + + "googleapis.com/ScanRun\"t\n\034ListFindingTyp" + + "eStatsResponse\022T\n\022finding_type_stats\030\001 \003" + + "(\01328.google.cloud.websecurityscanner.v1b" + + "eta.FindingTypeStats2\216\026\n\022WebSecurityScan" + + "ner\022\332\001\n\020CreateScanConfig\022?.google.cloud." + + "websecurityscanner.v1beta.CreateScanConf" + + "igRequest\0322.google.cloud.websecurityscan" + + "ner.v1beta.ScanConfig\"Q\202\323\344\223\0026\"\'/v1beta/{" + + "parent=projects/*}/scanConfigs:\013scan_con" + + "fig\332A\022parent,scan_config\022\243\001\n\020DeleteScanC" + + "onfig\022?.google.cloud.websecurityscanner." + + "v1beta.DeleteScanConfigRequest\032\026.google." + + "protobuf.Empty\"6\202\323\344\223\002)*\'/v1beta/{name=pr" + + "ojects/*/scanConfigs/*}\332A\004name\022\271\001\n\rGetSc" + + "anConfig\022<.google.cloud.websecurityscann" + + "er.v1beta.GetScanConfigRequest\0322.google." + + "cloud.websecurityscanner.v1beta.ScanConf" + + "ig\"6\202\323\344\223\002)\022\'/v1beta/{name=projects/*/sca" + + "nConfigs/*}\332A\004name\022\314\001\n\017ListScanConfigs\022>" + + ".google.cloud.websecurityscanner.v1beta." + + "ListScanConfigsRequest\032?.google.cloud.we" + + "bsecurityscanner.v1beta.ListScanConfigsR" + + "esponse\"8\202\323\344\223\002)\022\'/v1beta/{parent=project" + + "s/*}/scanConfigs\332A\006parent\022\353\001\n\020UpdateScan" + + "Config\022?.google.cloud.websecurityscanner" + + ".v1beta.UpdateScanConfigRequest\0322.google" + + ".cloud.websecurityscanner.v1beta.ScanCon" + + "fig\"b\202\323\344\223\002B23/v1beta/{scan_config.name=p" + + "rojects/*/scanConfigs/*}:\013scan_config\332A\027" + + "scan_config,update_mask\022\275\001\n\014StartScanRun" + + "\022;.google.cloud.websecurityscanner.v1bet" + + "a.StartScanRunRequest\032/.google.cloud.web" + + "securityscanner.v1beta.ScanRun\"?\202\323\344\223\0022\"-" + + "/v1beta/{name=projects/*/scanConfigs/*}:" + + "start:\001*\332A\004name\022\273\001\n\nGetScanRun\0229.google." + + "cloud.websecurityscanner.v1beta.GetScanR" + + "unRequest\032/.google.cloud.websecurityscan" + + "ner.v1beta.ScanRun\"A\202\323\344\223\0024\0222/v1beta/{nam" + + "e=projects/*/scanConfigs/*/scanRuns/*}\332A" + + "\004name\022\316\001\n\014ListScanRuns\022;.google.cloud.we" + + "bsecurityscanner.v1beta.ListScanRunsRequ" + + "est\032<.google.cloud.websecurityscanner.v1" + + "beta.ListScanRunsResponse\"C\202\323\344\223\0024\0222/v1be" + + "ta/{parent=projects/*/scanConfigs/*}/sca" + + "nRuns\332A\006parent\022\305\001\n\013StopScanRun\022:.google." + + "cloud.websecurityscanner.v1beta.StopScan" + + "RunRequest\032/.google.cloud.websecuritysca" + + "nner.v1beta.ScanRun\"I\202\323\344\223\002<\"7/v1beta/{na" + + "me=projects/*/scanConfigs/*/scanRuns/*}:" + + "stop:\001*\332A\004name\022\345\001\n\017ListCrawledUrls\022>.goo" + + "gle.cloud.websecurityscanner.v1beta.List" + + "CrawledUrlsRequest\032?.google.cloud.websec" + + "urityscanner.v1beta.ListCrawledUrlsRespo" + + "nse\"Q\202\323\344\223\002B\022@/v1beta/{parent=projects/*/" + + "scanConfigs/*/scanRuns/*}/crawledUrls\332A\006" + + "parent\022\306\001\n\nGetFinding\0229.google.cloud.web" + + "securityscanner.v1beta.GetFindingRequest" + + "\032/.google.cloud.websecurityscanner.v1bet" + + "a.Finding\"L\202\323\344\223\002?\022=/v1beta/{name=project" + + "s/*/scanConfigs/*/scanRuns/*/findings/*}" + + "\332A\004name\022\340\001\n\014ListFindings\022;.google.cloud." + + "websecurityscanner.v1beta.ListFindingsRe" + + "quest\032<.google.cloud.websecurityscanner." + + "v1beta.ListFindingsResponse\"U\202\323\344\223\002?\022=/v1" + + "beta/{parent=projects/*/scanConfigs/*/sc" + + "anRuns/*}/findings\332A\rparent,filter\022\371\001\n\024L" + + "istFindingTypeStats\022C.google.cloud.webse" + + "curityscanner.v1beta.ListFindingTypeStat" + + "sRequest\032D.google.cloud.websecurityscann" + + "er.v1beta.ListFindingTypeStatsResponse\"V" + + "\202\323\344\223\002G\022E/v1beta/{parent=projects/*/scanC" + + "onfigs/*/scanRuns/*}/findingTypeStats\332A\006" + + "parent\032U\312A!websecurityscanner.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\237\002\n*com.google.cloud.webse" + + "curityscanner.v1betaB\027WebSecurityScanner" + + "ProtoP\001ZXgoogle.golang.org/genproto/goog" + + "leapis/cloud/websecurityscanner/v1beta;w" + + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" + + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" + + "urityScanner\\V1beta\352\002)Google::Cloud::Web" + + "SecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor, + new java.lang.String[] { "Parent", "ScanConfig", }); + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor, + new java.lang.String[] { "ScanConfig", "UpdateMask", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor, + new java.lang.String[] { "ScanConfigs", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor, + new java.lang.String[] { "ScanRuns", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor, + new java.lang.String[] { "CrawledUrls", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor, + new java.lang.String[] { "Findings", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor, + new java.lang.String[] { "FindingTypeStats", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java index f72469e0..8804159c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java @@ -1,42 +1,24 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information reported for an XSS.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Xss} */ -public final class Xss extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Xss extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.Xss) XssOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Xss.newBuilder() to construct. private Xss(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Xss() { stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; errorMessage_ = ""; @@ -44,15 +26,16 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xss(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Xss( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private Xss( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stackTraces_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackTraces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + stackTraces_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private Xss( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -112,61 +94,50 @@ private Xss( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Xss.class, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Xss.class, com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); } public static final int STACK_TRACES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList stackTraces_; /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_; } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -174,32 +145,27 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -208,29 +174,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -239,7 +205,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < stackTraces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTraces_.getRaw(i)); } @@ -286,16 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.Xss)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.Xss other = - (com.google.cloud.websecurityscanner.v1beta.Xss) obj; + com.google.cloud.websecurityscanner.v1beta.Xss other = (com.google.cloud.websecurityscanner.v1beta.Xss) obj; - if (!getStackTracesList().equals(other.getStackTracesList())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getStackTracesList() + .equals(other.getStackTracesList())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,127 +285,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.Xss parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.Xss parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.Xss prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an XSS.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Xss} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.Xss) com.google.cloud.websecurityscanner.v1beta.XssOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Xss.class, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Xss.class, com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder() @@ -446,15 +404,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; } @java.lang.Override @@ -487,8 +446,7 @@ public com.google.cloud.websecurityscanner.v1beta.Xss build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Xss buildPartial() { - com.google.cloud.websecurityscanner.v1beta.Xss result = - new com.google.cloud.websecurityscanner.v1beta.Xss(this); + com.google.cloud.websecurityscanner.v1beta.Xss result = new com.google.cloud.websecurityscanner.v1beta.Xss(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -504,39 +462,38 @@ public com.google.cloud.websecurityscanner.v1beta.Xss buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.Xss) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Xss) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Xss)other); } else { super.mergeFrom(other); return this; @@ -587,55 +544,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList stackTraces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStackTracesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_.getUnmodifiableView(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -643,90 +589,80 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index to set the value at. * @param value The stackTraces to set. * @return This builder for chaining. */ - public Builder setStackTraces(int index, java.lang.String value) { + public Builder setStackTraces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.set(index, value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTraces(java.lang.String value) { + public Builder addStackTraces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param values The stackTraces to add. * @return This builder for chaining. */ - public Builder addAllStackTraces(java.lang.Iterable values) { + public Builder addAllStackTraces( + java.lang.Iterable values) { ensureStackTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stackTraces_); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return This builder for chaining. */ public Builder clearStackTraces() { @@ -736,22 +672,20 @@ public Builder clearStackTraces() { return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The bytes of the stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { + public Builder addStackTracesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); @@ -760,20 +694,18 @@ public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -782,21 +714,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -804,68 +735,61 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.Xss) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Xss) private static final com.google.cloud.websecurityscanner.v1beta.Xss DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.Xss(); } @@ -889,16 +813,16 @@ public static com.google.cloud.websecurityscanner.v1beta.Xss getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xss parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xss parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xss(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -913,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java similarity index 65% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java index a8d275af..bf9286e9 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java @@ -1,101 +1,70 @@ -/* - * 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/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface XssOrBuilder - extends +public interface XssOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.Xss) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - java.util.List getStackTracesList(); + java.util.List + getStackTracesList(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ int getStackTracesCount(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ java.lang.String getStackTraces(int index); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - com.google.protobuf.ByteString getStackTracesBytes(int index); + com.google.protobuf.ByteString + getStackTracesBytes(int index); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java index 535fb251..b8eb07c1 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerStubSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java index b297287b..2bf17518 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java index ef281a26..53a9f6e6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java index a0197f2f..5625ec1d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build(); WebSecurityScannerClient webSecurityScannerClient = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java index fa9af7ec..0ebf6b61 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java index 288c7943..09564644 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java index aaa3aefc..09443a85 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigProjectnameScanconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java index d72e9827..f2cbabe6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigStringScanconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java index 28063182..b95137d9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java index afc60d6a..41dd0f35 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java index a5fb2feb..ba78e857 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); webSecurityScannerClient.deleteScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java index ed8cf896..2924cc07 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); webSecurityScannerClient.deleteScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java index 5f43cc0d..0d77a8d9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java index 7e171b7f..f6bbab63 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java index 7852f9be..640a2eac 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingFindingname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); Finding response = webSecurityScannerClient.getFinding(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java index 6e267654..5175119e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java index 5f28cfdb..855da348 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java index ef7d3e7a..8a9afa87 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java index c45234cd..e7b2c9f6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java index 53fac7e2..b86ed99c 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java index 7ad7a7dd..72939145 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java index 9b82a1d1..5c3cb7c0 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java index e26bb669..81d3d703 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java index cf78eea9..a22e0fda 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java index d81560dc..b2052717 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 85% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java index 2f99a3ae..623321fc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrlsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java index 6a1ff75c..f7752c6e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java index 421920bb..7ec157bb 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java index 76821182..a5040b11 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java index 6a66c784..15bb6580 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java similarity index 85% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java index cfb8d63a..ca93615b 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java index 72dfbbef..d31fef30 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java index d314e24e..294822da 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsScanrunnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); String filter = "filter-1274492040"; diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java index 5bcf1fa0..6e996cf8 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); String filter = "filter-1274492040"; diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java index 88d7e3e6..8b525fa6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java index df8125f0..ecf8d88d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java index 87c6c407..92c2e034 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java index cbd65264..157412e5 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java index 30b52423..54fe14b9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 84% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java index 37a8b60a..2e2e6cf4 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java index bf643261..d71f45a7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java index c58c72be..8d2e7b54 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java index 980006c0..aa503883 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java similarity index 82% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java index e5a440d7..38748529 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java similarity index 84% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java index fc1b1534..ce495cdc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRunsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java index aace25f0..8eee3092 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java index 1070d0a4..fb0a0fac 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java index 94b19f26..bc07cbc7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java index e9975035..427f2427 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java index a8d52ca7..38e5cd05 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java index f8ba48cd..2dbe3bb9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java index c5c411f1..742df115 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java index 4dc71043..e62dc736 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java index b13712b0..186a380d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java index c881236a..fe8c7c02 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java similarity index 78% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java index d2053496..69ca907f 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java similarity index 81% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java index b2ac2033..18d21cc4 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java index c9526de7..07cef0b9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 79% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java index d0111a8a..39a6238a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfigScanconfigFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfig scanConfig = ScanConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 80% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java index 9b6007a9..76b2acc8 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java +++ b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java deleted file mode 100644 index be61a411..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java +++ /dev/null @@ -1,69 +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/cloud/websecurityscanner/v1/crawled_url.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class CrawledUrlProto { - private CrawledUrlProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/websecurityscanner/v1/cra" - + "wled_url.proto\022\"google.cloud.websecurity" - + "scanner.v1\"<\n\nCrawledUrl\022\023\n\013http_method\030" - + "\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\tB\203\002\n&com" - + ".google.cloud.websecurityscanner.v1B\017Cra" - + "wledUrlProtoP\001ZTgoogle.golang.org/genpro" - + "to/googleapis/cloud/websecurityscanner/v" - + "1;websecurityscanner\252\002\"Google.Cloud.WebS" - + "ecurityScanner.V1\312\002\"Google\\Cloud\\WebSecu" - + "rityScanner\\V1\352\002%Google::Cloud::WebSecur" - + "ityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor, - new java.lang.String[] { - "HttpMethod", "Url", "Body", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java deleted file mode 100644 index cd63245f..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java +++ /dev/null @@ -1,165 +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/cloud/websecurityscanner/v1/finding_addon.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class FindingAddonProto { - private FindingAddonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/websecurityscanner/v1/fin" - + "ding_addon.proto\022\"google.cloud.websecuri" - + "tyscanner.v1\"*\n\004Form\022\022\n\naction_uri\030\001 \001(\t" - + "\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibrary\022\024\n\014l" - + "ibrary_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\027\n\017le" - + "arn_more_urls\030\003 \003(\t\"?\n\021ViolatingResource" - + "\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource_url\030\002" - + " \001(\t\"/\n\024VulnerableParameters\022\027\n\017paramete" - + "r_names\030\001 \003(\t\"\340\001\n\021VulnerableHeaders\022M\n\007h" - + "eaders\030\001 \003(\0132<.google.cloud.websecuritys" - + "canner.v1.VulnerableHeaders.Header\022U\n\017mi" - + "ssing_headers\030\002 \003(\0132<.google.cloud.webse" - + "curityscanner.v1.VulnerableHeaders.Heade" - + "r\032%\n\006Header\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + "\"\333\003\n\003Xss\022\024\n\014stack_traces\030\001 \003(\t\022\025\n\rerror_" - + "message\030\002 \001(\t\022K\n\rattack_vector\030\003 \001(\01624.g" - + "oogle.cloud.websecurityscanner.v1.Xss.At" - + "tackVector\022\036\n\026stored_xss_seeding_url\030\004 \001" - + "(\t\"\271\002\n\014AttackVector\022\035\n\031ATTACK_VECTOR_UNS" - + "PECIFIED\020\000\022\021\n\rLOCAL_STORAGE\020\001\022\023\n\017SESSION" - + "_STORAGE\020\002\022\017\n\013WINDOW_NAME\020\003\022\014\n\010REFERRER\020" - + "\004\022\016\n\nFORM_INPUT\020\005\022\n\n\006COOKIE\020\006\022\020\n\014POST_ME" - + "SSAGE\020\007\022\022\n\016GET_PARAMETERS\020\010\022\020\n\014URL_FRAGM" - + "ENT\020\t\022\020\n\014HTML_COMMENT\020\n\022\023\n\017POST_PARAMETE" - + "RS\020\013\022\014\n\010PROTOCOL\020\014\022\016\n\nSTORED_XSS\020\r\022\017\n\013SA" - + "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017B\205" - + "\002\n&com.google.cloud.websecurityscanner.v" - + "1B\021FindingAddonProtoP\001ZTgoogle.golang.or" - + "g/genproto/googleapis/cloud/websecuritys" - + "canner/v1;websecurityscanner\252\002\"Google.Cl" - + "oud.WebSecurityScanner.V1\312\002\"Google\\Cloud" - + "\\WebSecurityScanner\\V1\352\002%Google::Cloud::" - + "WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_Form_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Form_descriptor, - new java.lang.String[] { - "ActionUri", "Fields", - }); - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor, - new java.lang.String[] { - "LibraryName", "Version", "LearnMoreUrls", - }); - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor, - new java.lang.String[] { - "ContentType", "ResourceUrl", - }); - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor, - new java.lang.String[] { - "ParameterNames", - }); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor, - new java.lang.String[] { - "Headers", "MissingHeaders", - }); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor = - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor, - new java.lang.String[] { - "Name", "Value", - }); - internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor, - new java.lang.String[] { - "StackTraces", "ErrorMessage", "AttackVector", "StoredXssSeedingUrl", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java deleted file mode 100644 index a94ab1eb..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java +++ /dev/null @@ -1,124 +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/cloud/websecurityscanner/v1/finding.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class FindingProto { - private FindingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/websecurityscanner/v1/fin" - + "ding.proto\022\"google.cloud.websecurityscan" - + "ner.v1\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\0326google/cloud" - + "/websecurityscanner/v1/finding_addon.pro" - + "to\"\261\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" - + "type\030\002 \001(\t\022K\n\010severity\030\021 \001(\01624.google.cl" - + "oud.websecurityscanner.v1.Finding.Severi" - + "tyB\003\340A\003\022\023\n\013http_method\030\003 \001(\t\022\022\n\nfuzzed_u" - + "rl\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013description\030\006 " - + "\001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\tframe_u" - + "rl\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tracking_" - + "id\030\n \001(\t\0226\n\004form\030\020 \001(\0132(.google.cloud.we" - + "bsecurityscanner.v1.Form\022M\n\020outdated_lib" - + "rary\030\013 \001(\01323.google.cloud.websecuritysca" - + "nner.v1.OutdatedLibrary\022Q\n\022violating_res" - + "ource\030\014 \001(\01325.google.cloud.websecuritysc" - + "anner.v1.ViolatingResource\022Q\n\022vulnerable" - + "_headers\030\017 \001(\01325.google.cloud.websecurit" - + "yscanner.v1.VulnerableHeaders\022W\n\025vulnera" - + "ble_parameters\030\r \001(\01328.google.cloud.webs" - + "ecurityscanner.v1.VulnerableParameters\0224" - + "\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritysc" - + "anner.v1.Xss\"Q\n\010Severity\022\030\n\024SEVERITY_UNS" - + "PECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006ME" - + "DIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200\001\n)websecurityscann" - + "er.googleapis.com/Finding\022Sprojects/{pro" - + "ject}/scanConfigs/{scan_config}/scanRuns" - + "/{scan_run}/findings/{finding}B\200\002\n&com.g" - + "oogle.cloud.websecurityscanner.v1B\014Findi" - + "ngProtoP\001ZTgoogle.golang.org/genproto/go" - + "ogleapis/cloud/websecurityscanner/v1;web" - + "securityscanner\252\002\"Google.Cloud.WebSecuri" - + "tyScanner.V1\312\002\"Google\\Cloud\\WebSecurityS" - + "canner\\V1\352\002%Google::Cloud::WebSecuritySc" - + "anner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor, - new java.lang.String[] { - "Name", - "FindingType", - "Severity", - "HttpMethod", - "FuzzedUrl", - "Body", - "Description", - "ReproductionUrl", - "FrameUrl", - "FinalUrl", - "TrackingId", - "Form", - "OutdatedLibrary", - "ViolatingResource", - "VulnerableHeaders", - "VulnerableParameters", - "Xss", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java deleted file mode 100644 index 798dbfa5..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java +++ /dev/null @@ -1,69 +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/cloud/websecurityscanner/v1/finding_type_stats.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class FindingTypeStatsProto { - private FindingTypeStatsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1/fin" - + "ding_type_stats.proto\022\"google.cloud.webs" - + "ecurityscanner.v1\"?\n\020FindingTypeStats\022\024\n" - + "\014finding_type\030\001 \001(\t\022\025\n\rfinding_count\030\002 \001" - + "(\005B\211\002\n&com.google.cloud.websecurityscann" - + "er.v1B\025FindingTypeStatsProtoP\001ZTgoogle.g" - + "olang.org/genproto/googleapis/cloud/webs" - + "ecurityscanner/v1;websecurityscanner\252\002\"G" - + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" - + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" - + ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor, - new java.lang.String[] { - "FindingType", "FindingCount", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java deleted file mode 100644 index ab191d14..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java +++ /dev/null @@ -1,106 +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/cloud/websecurityscanner/v1/scan_config_error.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanConfigErrorProto { - private ScanConfigErrorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1/sca" - + "n_config_error.proto\022\"google.cloud.webse" - + "curityscanner.v1\"\351\013\n\017ScanConfigError\022F\n\004" - + "code\030\001 \001(\01628.google.cloud.websecuritysca" - + "nner.v1.ScanConfigError.Code\022\022\n\nfield_na" - + "me\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022" - + "\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\037\n\033APPENGINE" - + "_API_BACKEND_ERROR\020\002\022 \n\034APPENGINE_API_NO" - + "T_ACCESSIBLE\020\003\022\"\n\036APPENGINE_DEFAULT_HOST" - + "_MISSING\020\004\022!\n\035CANNOT_USE_GOOGLE_COM_ACCO" - + "UNT\020\006\022\034\n\030CANNOT_USE_OWNER_ACCOUNT\020\007\022\035\n\031C" - + "OMPUTE_API_BACKEND_ERROR\020\010\022\036\n\032COMPUTE_AP" - + "I_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM_LOGIN_URL_D" - + "OES_NOT_BELONG_TO_CURRENT_PROJECT\020\n\022\036\n\032C" - + "USTOM_LOGIN_URL_MALFORMED\020\013\0223\n/CUSTOM_LO" - + "GIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\014" - + "\0221\n-CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVE" - + "D_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_URL_HAS_NON_" - + "ROUTABLE_IP_ADDRESS\020\016\022.\n*CUSTOM_LOGIN_UR" - + "L_HAS_UNRESERVED_IP_ADDRESS\020\017\022\027\n\023DUPLICA" - + "TE_SCAN_NAME\020\020\022\027\n\023INVALID_FIELD_VALUE\020\022\022" - + "$\n FAILED_TO_AUTHENTICATE_TO_TARGET\020\023\022\034\n" - + "\030FINDING_TYPE_UNSPECIFIED\020\024\022\035\n\031FORBIDDEN" - + "_TO_SCAN_COMPUTE\020\025\022$\n FORBIDDEN_UPDATE_T" - + "O_MANAGED_SCAN\020+\022\024\n\020MALFORMED_FILTER\020\026\022\033" - + "\n\027MALFORMED_RESOURCE_NAME\020\027\022\024\n\020PROJECT_I" - + "NACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020\031\022\036\n\032RESOURC" - + "E_NAME_INCONSISTENT\020\032\022\030\n\024SCAN_ALREADY_RU" - + "NNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020\034\022/\n+SEED_UR" - + "L_DOES_NOT_BELONG_TO_CURRENT_PROJECT\020\035\022\026" - + "\n\022SEED_URL_MALFORMED\020\036\022+\n\'SEED_URL_MAPPE" - + "D_TO_NON_ROUTABLE_ADDRESS\020\037\022)\n%SEED_URL_" - + "MAPPED_TO_UNRESERVED_ADDRESS\020 \022(\n$SEED_U" - + "RL_HAS_NON_ROUTABLE_IP_ADDRESS\020!\022&\n\"SEED" - + "_URL_HAS_UNRESERVED_IP_ADDRESS\020#\022\"\n\036SERV" - + "ICE_ACCOUNT_NOT_CONFIGURED\020$\022\022\n\016TOO_MANY" - + "_SCANS\020%\022\"\n\036UNABLE_TO_RESOLVE_PROJECT_IN" - + "FO\020&\022(\n$UNSUPPORTED_BLACKLIST_PATTERN_FO" - + "RMAT\020\'\022\026\n\022UNSUPPORTED_FILTER\020(\022\034\n\030UNSUPP" - + "ORTED_FINDING_TYPE\020)\022\032\n\026UNSUPPORTED_URL_" - + "SCHEME\020*\032\002\020\001B\210\002\n&com.google.cloud.websec" - + "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" - + "Tgoogle.golang.org/genproto/googleapis/c" - + "loud/websecurityscanner/v1;websecuritysc" - + "anner\252\002\"Google.Cloud.WebSecurityScanner." - + "V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V1\352" - + "\002%Google::Cloud::WebSecurityScanner::V1b" - + "\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor, - new java.lang.String[] { - "Code", "FieldName", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java deleted file mode 100644 index 8849902c..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java +++ /dev/null @@ -1,217 +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/cloud/websecurityscanner/v1/scan_config.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanConfigProto { - private ScanConfigProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/websecurityscanner/v1/sca" - + "n_config.proto\022\"google.cloud.websecurity" - + "scanner.v1\032\037google/api/field_behavior.pr" - + "oto\032\037google/protobuf/timestamp.proto\"\231\r\n" - + "\nScanConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" - + "e\030\002 \001(\t\022\017\n\007max_qps\030\003 \001(\005\022\025\n\rstarting_url" - + "s\030\004 \003(\t\022U\n\016authentication\030\005 \001(\0132=.google" - + ".cloud.websecurityscanner.v1.ScanConfig." - + "Authentication\022L\n\nuser_agent\030\006 \001(\01628.goo" - + "gle.cloud.websecurityscanner.v1.ScanConf" - + "ig.UserAgent\022\032\n\022blacklist_patterns\030\007 \003(\t" - + "\022I\n\010schedule\030\010 \001(\01327.google.cloud.websec" - + "urityscanner.v1.ScanConfig.Schedule\022w\n!e" - + "xport_to_security_command_center\030\n \001(\0162L" - + ".google.cloud.websecurityscanner.v1.Scan" - + "Config.ExportToSecurityCommandCenter\022L\n\n" - + "risk_level\030\014 \001(\01628.google.cloud.websecur" - + "ityscanner.v1.ScanConfig.RiskLevel\022\024\n\014ma" - + "naged_scan\030\r \001(\010\022\026\n\016static_ip_scan\030\016 \001(\010" - + "\032\317\005\n\016Authentication\022e\n\016google_account\030\001 " - + "\001(\0132K.google.cloud.websecurityscanner.v1" - + ".ScanConfig.Authentication.GoogleAccount" - + "H\000\022e\n\016custom_account\030\002 \001(\0132K.google.clou" - + "d.websecurityscanner.v1.ScanConfig.Authe" - + "ntication.CustomAccountH\000\022e\n\016iap_credent" - + "ial\030\004 \001(\0132K.google.cloud.websecurityscan" - + "ner.v1.ScanConfig.Authentication.IapCred" - + "entialH\000\0323\n\rGoogleAccount\022\020\n\010username\030\001 " - + "\001(\t\022\020\n\010password\030\002 \001(\t\032F\n\rCustomAccount\022\020" - + "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n\tlo" - + "gin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035iap_" - + "test_service_account_info\030\001 \001(\0132e.google" - + ".cloud.websecurityscanner.v1.ScanConfig." - + "Authentication.IapCredential.IapTestServ" - + "iceAccountInfoH\000\032C\n\031IapTestServiceAccoun" - + "tInfo\022&\n\031target_audience_client_id\030\001 \001(\t" - + "B\003\340A\002B\021\n\017iap_credentialsB\020\n\016authenticati" - + "on\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032." - + "google.protobuf.Timestamp\022\036\n\026interval_du" - + "ration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USER_A" - + "GENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022\022\n\016" - + "CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<\n\tR" - + "iskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022\n\n\006" - + "NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurityCom" - + "mandCenter\0221\n-EXPORT_TO_SECURITY_COMMAND" - + "_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" - + "SABLED\020\002B\203\002\n&com.google.cloud.websecurit" - + "yscanner.v1B\017ScanConfigProtoP\001ZTgoogle.g" - + "olang.org/genproto/googleapis/cloud/webs" - + "ecurityscanner/v1;websecurityscanner\252\002\"G" - + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" - + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" - + ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "MaxQps", - "StartingUrls", - "Authentication", - "UserAgent", - "BlacklistPatterns", - "Schedule", - "ExportToSecurityCommandCenter", - "RiskLevel", - "ManagedScan", - "StaticIpScan", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor, - new java.lang.String[] { - "GoogleAccount", "CustomAccount", "IapCredential", "Authentication", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor, - new java.lang.String[] { - "Username", "Password", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor, - new java.lang.String[] { - "Username", "Password", "LoginUrl", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor, - new java.lang.String[] { - "IapTestServiceAccountInfo", "IapCredentials", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor, - new java.lang.String[] { - "TargetAudienceClientId", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor, - new java.lang.String[] { - "ScheduleTime", "IntervalDurationDays", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java deleted file mode 100644 index 16ad1d02..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java +++ /dev/null @@ -1,83 +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/cloud/websecurityscanner/v1/scan_run_error_trace.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunErrorTraceProto { - private ScanRunErrorTraceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1/sca" - + "n_run_error_trace.proto\022\"google.cloud.we" - + "bsecurityscanner.v1\032:google/cloud/websec" - + "urityscanner/v1/scan_config_error.proto\"" - + "\215\003\n\021ScanRunErrorTrace\022H\n\004code\030\001 \001(\0162:.go" - + "ogle.cloud.websecurityscanner.v1.ScanRun" - + "ErrorTrace.Code\022N\n\021scan_config_error\030\002 \001" - + "(\01323.google.cloud.websecurityscanner.v1." - + "ScanConfigError\022#\n\033most_common_http_erro" - + "r_code\030\003 \001(\005\"\270\001\n\004Code\022\024\n\020CODE_UNSPECIFIE" - + "D\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\025\n\021SCAN_CONFIG_I" - + "SSUE\020\002\022\037\n\033AUTHENTICATION_CONFIG_ISSUE\020\003\022" - + "\034\n\030TIMED_OUT_WHILE_SCANNING\020\004\022\026\n\022TOO_MAN" - + "Y_REDIRECTS\020\005\022\030\n\024TOO_MANY_HTTP_ERRORS\020\006B" - + "\212\002\n&com.google.cloud.websecurityscanner." - + "v1B\026ScanRunErrorTraceProtoP\001ZTgoogle.gol" - + "ang.org/genproto/googleapis/cloud/websec" - + "urityscanner/v1;websecurityscanner\252\002\"Goo" - + "gle.Cloud.WebSecurityScanner.V1\312\002\"Google" - + "\\Cloud\\WebSecurityScanner\\V1\352\002%Google::C" - + "loud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor, - new java.lang.String[] { - "Code", "ScanConfigError", "MostCommonHttpErrorCode", - }); - com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java deleted file mode 100644 index f1f55738..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java +++ /dev/null @@ -1,92 +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/cloud/websecurityscanner/v1/scan_run_log.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunLogProto { - private ScanRunLogProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/websecurityscanner/v1/sca" - + "n_run_log.proto\022\"google.cloud.websecurit" - + "yscanner.v1\0321google/cloud/websecuritysca" - + "nner/v1/scan_run.proto\032=google/cloud/web" - + "securityscanner/v1/scan_run_error_trace." - + "proto\"\350\002\n\nScanRunLog\022\017\n\007summary\030\001 \001(\t\022\014\n" - + "\004name\030\002 \001(\t\022S\n\017execution_state\030\003 \001(\0162:.g" - + "oogle.cloud.websecurityscanner.v1.ScanRu" - + "n.ExecutionState\022M\n\014result_state\030\004 \001(\01627" - + ".google.cloud.websecurityscanner.v1.Scan" - + "Run.ResultState\022\032\n\022urls_crawled_count\030\005 " - + "\001(\003\022\031\n\021urls_tested_count\030\006 \001(\003\022\024\n\014has_fi" - + "ndings\030\007 \001(\010\022J\n\013error_trace\030\010 \001(\01325.goog" - + "le.cloud.websecurityscanner.v1.ScanRunEr" - + "rorTraceB\203\002\n&com.google.cloud.websecurit" - + "yscanner.v1B\017ScanRunLogProtoP\001ZTgoogle.g" - + "olang.org/genproto/googleapis/cloud/webs" - + "ecurityscanner/v1;websecurityscanner\252\002\"G" - + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" - + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" - + ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor, - new java.lang.String[] { - "Summary", - "Name", - "ExecutionState", - "ResultState", - "UrlsCrawledCount", - "UrlsTestedCount", - "HasFindings", - "ErrorTrace", - }); - com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java deleted file mode 100644 index 8294ff42..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java +++ /dev/null @@ -1,107 +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/cloud/websecurityscanner/v1/scan_run.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunProto { - private ScanRunProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/websecurityscanner/v1/sca" - + "n_run.proto\022\"google.cloud.websecuritysca" - + "nner.v1\032=google/cloud/websecurityscanner" - + "/v1/scan_run_error_trace.proto\032?google/c" - + "loud/websecurityscanner/v1/scan_run_warn" - + "ing_trace.proto\032\037google/protobuf/timesta" - + "mp.proto\"\320\005\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022S\n\017ex" - + "ecution_state\030\002 \001(\0162:.google.cloud.webse" - + "curityscanner.v1.ScanRun.ExecutionState\022" - + "M\n\014result_state\030\003 \001(\01627.google.cloud.web" - + "securityscanner.v1.ScanRun.ResultState\022." - + "\n\nstart_time\030\004 \001(\0132\032.google.protobuf.Tim" - + "estamp\022,\n\010end_time\030\005 \001(\0132\032.google.protob" - + "uf.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003" - + "\022\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulne" - + "rabilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001" - + "(\005\022J\n\013error_trace\030\n \001(\01325.google.cloud.w" - + "ebsecurityscanner.v1.ScanRunErrorTrace\022O" - + "\n\016warning_traces\030\013 \003(\01327.google.cloud.we" - + "bsecurityscanner.v1.ScanRunWarningTrace\"" - + "Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_UNS" - + "PECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014\n\010" - + "FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_STAT" - + "E_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\022" - + "\n\n\006KILLED\020\003B\200\002\n&com.google.cloud.websecu" - + "rityscanner.v1B\014ScanRunProtoP\001ZTgoogle.g" - + "olang.org/genproto/googleapis/cloud/webs" - + "ecurityscanner/v1;websecurityscanner\252\002\"G" - + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" - + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" - + ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor, - new java.lang.String[] { - "Name", - "ExecutionState", - "ResultState", - "StartTime", - "EndTime", - "UrlsCrawledCount", - "UrlsTestedCount", - "HasVulnerabilities", - "ProgressPercent", - "ErrorTrace", - "WarningTraces", - }); - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java deleted file mode 100644 index 76b7bee4..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java +++ /dev/null @@ -1,74 +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/cloud/websecurityscanner/v1/scan_run_warning_trace.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunWarningTraceProto { - private ScanRunWarningTraceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1/sca" - + "n_run_warning_trace.proto\022\"google.cloud." - + "websecurityscanner.v1\"\351\001\n\023ScanRunWarning" - + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" - + "curityscanner.v1.ScanRunWarningTrace.Cod" - + "e\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" - + "FFICIENT_CRAWL_RESULTS\020\001\022\032\n\026TOO_MANY_CRA" - + "WL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZZ_TASKS\020\003\022\022\n" - + "\016BLOCKED_BY_IAP\020\004B\214\002\n&com.google.cloud.w" - + "ebsecurityscanner.v1B\030ScanRunWarningTrac" - + "eProtoP\001ZTgoogle.golang.org/genproto/goo" - + "gleapis/cloud/websecurityscanner/v1;webs" - + "ecurityscanner\252\002\"Google.Cloud.WebSecurit" - + "yScanner.V1\312\002\"Google\\Cloud\\WebSecuritySc" - + "anner\\V1\352\002%Google::Cloud::WebSecuritySca" - + "nner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor, - new java.lang.String[] { - "Code", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java deleted file mode 100644 index 0b550064..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java +++ /dev/null @@ -1,408 +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/cloud/websecurityscanner/v1/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class WebSecurityScannerProto { - private WebSecurityScannerProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1/web" - + "_security_scanner.proto\022\"google.cloud.we" - + "bsecurityscanner.v1\032\034google/api/annotati" - + "ons.proto\0324google/cloud/websecurityscann" - + "er/v1/crawled_url.proto\0320google/cloud/we" - + "bsecurityscanner/v1/finding.proto\032;googl" - + "e/cloud/websecurityscanner/v1/finding_ty" - + "pe_stats.proto\0324google/cloud/websecurity" - + "scanner/v1/scan_config.proto\0321google/clo" - + "ud/websecurityscanner/v1/scan_run.proto\032" - + "\033google/protobuf/empty.proto\032 google/pro" - + "tobuf/field_mask.proto\032\027google/api/clien" - + "t.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" - + "rent\030\001 \001(\t\022C\n\013scan_config\030\002 \001(\0132..google" - + ".cloud.websecurityscanner.v1.ScanConfig\"" - + "\'\n\027DeleteScanConfigRequest\022\014\n\004name\030\001 \001(\t" - + "\"$\n\024GetScanConfigRequest\022\014\n\004name\030\001 \001(\t\"O" - + "\n\026ListScanConfigsRequest\022\016\n\006parent\030\001 \001(\t" - + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"" - + "\217\001\n\027UpdateScanConfigRequest\022C\n\013scan_conf" - + "ig\030\002 \001(\0132..google.cloud.websecurityscann" - + "er.v1.ScanConfig\022/\n\013update_mask\030\003 \001(\0132\032." - + "google.protobuf.FieldMask\"x\n\027ListScanCon" - + "figsResponse\022D\n\014scan_configs\030\001 \003(\0132..goo" - + "gle.cloud.websecurityscanner.v1.ScanConf" - + "ig\022\027\n\017next_page_token\030\002 \001(\t\"#\n\023StartScan" - + "RunRequest\022\014\n\004name\030\001 \001(\t\"!\n\021GetScanRunRe" - + "quest\022\014\n\004name\030\001 \001(\t\"L\n\023ListScanRunsReque" - + "st\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\"o\n\024ListScanRunsRespons" - + "e\022>\n\tscan_runs\030\001 \003(\0132+.google.cloud.webs" - + "ecurityscanner.v1.ScanRun\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\"\n\022StopScanRunRequest\022\014\n\004name" - + "\030\001 \001(\t\"O\n\026ListCrawledUrlsRequest\022\016\n\006pare" - + "nt\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_siz" - + "e\030\003 \001(\005\"x\n\027ListCrawledUrlsResponse\022D\n\014cr" - + "awled_urls\030\001 \003(\0132..google.cloud.websecur" - + "ityscanner.v1.CrawledUrl\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"!\n\021GetFindingRequest\022\014\n\004name\030\001" - + " \001(\t\"\\\n\023ListFindingsRequest\022\016\n\006parent\030\001 " - + "\001(\t\022\016\n\006filter\030\002 \001(\t\022\022\n\npage_token\030\003 \001(\t\022" - + "\021\n\tpage_size\030\004 \001(\005\"n\n\024ListFindingsRespon" - + "se\022=\n\010findings\030\001 \003(\0132+.google.cloud.webs" - + "ecurityscanner.v1.Finding\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"-\n\033ListFindingTypeStatsReques" - + "t\022\016\n\006parent\030\001 \001(\t\"p\n\034ListFindingTypeStat" - + "sResponse\022P\n\022finding_type_stats\030\001 \003(\01324." - + "google.cloud.websecurityscanner.v1.Findi" - + "ngTypeStats2\351\023\n\022WebSecurityScanner\022\271\001\n\020C" - + "reateScanConfig\022;.google.cloud.websecuri" - + "tyscanner.v1.CreateScanConfigRequest\032..g" - + "oogle.cloud.websecurityscanner.v1.ScanCo" - + "nfig\"8\202\323\344\223\0022\"#/v1/{parent=projects/*}/sc" - + "anConfigs:\013scan_config\022\224\001\n\020DeleteScanCon" - + "fig\022;.google.cloud.websecurityscanner.v1" - + ".DeleteScanConfigRequest\032\026.google.protob" - + "uf.Empty\"+\202\323\344\223\002%*#/v1/{name=projects/*/s" - + "canConfigs/*}\022\246\001\n\rGetScanConfig\0228.google" - + ".cloud.websecurityscanner.v1.GetScanConf" - + "igRequest\032..google.cloud.websecurityscan" - + "ner.v1.ScanConfig\"+\202\323\344\223\002%\022#/v1/{name=pro" - + "jects/*/scanConfigs/*}\022\267\001\n\017ListScanConfi" - + "gs\022:.google.cloud.websecurityscanner.v1." - + "ListScanConfigsRequest\032;.google.cloud.we" - + "bsecurityscanner.v1.ListScanConfigsRespo" - + "nse\"+\202\323\344\223\002%\022#/v1/{parent=projects/*}/sca" - + "nConfigs\022\305\001\n\020UpdateScanConfig\022;.google.c" - + "loud.websecurityscanner.v1.UpdateScanCon" - + "figRequest\032..google.cloud.websecuritysca" - + "nner.v1.ScanConfig\"D\202\323\344\223\002>2//v1/{scan_co" - + "nfig.name=projects/*/scanConfigs/*}:\013sca" - + "n_config\022\252\001\n\014StartScanRun\0227.google.cloud" - + ".websecurityscanner.v1.StartScanRunReque" - + "st\032+.google.cloud.websecurityscanner.v1." - + "ScanRun\"4\202\323\344\223\002.\")/v1/{name=projects/*/sc" - + "anConfigs/*}:start:\001*\022\250\001\n\nGetScanRun\0225.g" - + "oogle.cloud.websecurityscanner.v1.GetSca" - + "nRunRequest\032+.google.cloud.websecuritysc" - + "anner.v1.ScanRun\"6\202\323\344\223\0020\022./v1/{name=proj" - + "ects/*/scanConfigs/*/scanRuns/*}\022\271\001\n\014Lis" - + "tScanRuns\0227.google.cloud.websecurityscan" - + "ner.v1.ListScanRunsRequest\0328.google.clou" - + "d.websecurityscanner.v1.ListScanRunsResp" - + "onse\"6\202\323\344\223\0020\022./v1/{parent=projects/*/sca" - + "nConfigs/*}/scanRuns\022\262\001\n\013StopScanRun\0226.g" - + "oogle.cloud.websecurityscanner.v1.StopSc" - + "anRunRequest\032+.google.cloud.websecuritys" - + "canner.v1.ScanRun\">\202\323\344\223\0028\"3/v1/{name=pro" - + "jects/*/scanConfigs/*/scanRuns/*}:stop:\001" - + "*\022\320\001\n\017ListCrawledUrls\022:.google.cloud.web" - + "securityscanner.v1.ListCrawledUrlsReques" - + "t\032;.google.cloud.websecurityscanner.v1.L" - + "istCrawledUrlsResponse\"D\202\323\344\223\002>\022 - * Required. The parent resource name where the scan is created, which should be a - * project resource name in the format 'projects/{projectId}'. - *
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scanConfig field is set. - */ - boolean hasScanConfig(); - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scanConfig. - */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(); - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index 0080af33..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface DeleteScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java deleted file mode 100644 index 52d187d3..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java +++ /dev/null @@ -1,139 +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/cloud/websecurityscanner/v1alpha/finding_addon.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class FindingAddonProto { - private FindingAddonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1alph" - + "a/finding_addon.proto\022\'google.cloud.webs" - + "ecurityscanner.v1alpha\"Q\n\017OutdatedLibrar" - + "y\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t" - + "\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021ViolatingRe" - + "source\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource" - + "_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017pa" - + "rameter_names\030\001 \003(\t\"\352\001\n\021VulnerableHeader" - + "s\022R\n\007headers\030\001 \003(\0132A.google.cloud.websec" - + "urityscanner.v1alpha.VulnerableHeaders.H" - + "eader\022Z\n\017missing_headers\030\002 \003(\0132A.google." - + "cloud.websecurityscanner.v1alpha.Vulnera" - + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" - + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\235\001\n+com.goo" - + "gle.cloud.websecurityscanner.v1alphaB\021Fi" - + "ndingAddonProtoP\001ZYgoogle.golang.org/gen" - + "proto/googleapis/cloud/websecurityscanne" - + "r/v1alpha;websecurityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor, - new java.lang.String[] { - "LibraryName", "Version", "LearnMoreUrls", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor, - new java.lang.String[] { - "ContentType", "ResourceUrl", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor, - new java.lang.String[] { - "ParameterNames", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor, - new java.lang.String[] { - "Headers", "MissingHeaders", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor, - new java.lang.String[] { - "Name", "Value", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor, - new java.lang.String[] { - "StackTraces", "ErrorMessage", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java deleted file mode 100644 index ddc6f293..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java +++ /dev/null @@ -1,120 +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/cloud/websecurityscanner/v1alpha/finding.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class FindingProto { - private FindingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/websecurityscanner/v1alph" - + "a/finding.proto\022\'google.cloud.websecurit" - + "yscanner.v1alpha\032\031google/api/resource.pr" - + "oto\032;google/cloud/websecurityscanner/v1a" - + "lpha/finding_addon.proto\"\351\010\n\007Finding\022\014\n\004" - + "name\030\001 \001(\t\022R\n\014finding_type\030\002 \001(\0162<.googl" - + "e.cloud.websecurityscanner.v1alpha.Findi" - + "ng.FindingType\022\023\n\013http_method\030\003 \001(\t\022\022\n\nf" - + "uzzed_url\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013descrip" - + "tion\030\006 \001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\t" - + "frame_url\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tr" - + "acking_id\030\n \001(\t\022R\n\020outdated_library\030\013 \001(" - + "\01328.google.cloud.websecurityscanner.v1al" - + "pha.OutdatedLibrary\022V\n\022violating_resourc" - + "e\030\014 \001(\0132:.google.cloud.websecurityscanne" - + "r.v1alpha.ViolatingResource\022V\n\022vulnerabl" - + "e_headers\030\017 \001(\0132:.google.cloud.websecuri" - + "tyscanner.v1alpha.VulnerableHeaders\022\\\n\025v" - + "ulnerable_parameters\030\r \001(\0132=.google.clou" - + "d.websecurityscanner.v1alpha.VulnerableP" - + "arameters\0229\n\003xss\030\016 \001(\0132,.google.cloud.we" - + "bsecurityscanner.v1alpha.Xss\"\266\002\n\013Finding" - + "Type\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\000\022\021\n\rMI" - + "XED_CONTENT\020\001\022\024\n\020OUTDATED_LIBRARY\020\002\022\021\n\rR" - + "OSETTA_FLASH\020\005\022\020\n\014XSS_CALLBACK\020\003\022\r\n\tXSS_" - + "ERROR\020\004\022\027\n\023CLEAR_TEXT_PASSWORD\020\006\022\030\n\024INVA" - + "LID_CONTENT_TYPE\020\007\022\030\n\024XSS_ANGULAR_CALLBA" - + "CK\020\010\022\022\n\016INVALID_HEADER\020\t\022#\n\037MISSPELLED_S" - + "ECURITY_HEADER_NAME\020\n\022&\n\"MISMATCHING_SEC" - + "URITY_HEADER_VALUES\020\013:\204\001\352A\200\001\n)websecurit" - + "yscanner.googleapis.com/Finding\022Sproject" - + "s/{project}/scanConfigs/{scan_config}/sc" - + "anRuns/{scan_run}/findings/{finding}B\230\001\n" - + "+com.google.cloud.websecurityscanner.v1a" - + "lphaB\014FindingProtoP\001ZYgoogle.golang.org/" - + "genproto/googleapis/cloud/websecuritysca" - + "nner/v1alpha;websecurityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor, - new java.lang.String[] { - "Name", - "FindingType", - "HttpMethod", - "FuzzedUrl", - "Body", - "Description", - "ReproductionUrl", - "FrameUrl", - "FinalUrl", - "TrackingId", - "OutdatedLibrary", - "ViolatingResource", - "VulnerableHeaders", - "VulnerableParameters", - "Xss", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java deleted file mode 100644 index a83473ed..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java +++ /dev/null @@ -1,74 +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/cloud/websecurityscanner/v1alpha/finding_type_stats.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class FindingTypeStatsProto { - private FindingTypeStatsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1alph" - + "a/finding_type_stats.proto\022\'google.cloud" - + ".websecurityscanner.v1alpha\0325google/clou" - + "d/websecurityscanner/v1alpha/finding.pro" - + "to\"}\n\020FindingTypeStats\022R\n\014finding_type\030\001" - + " \001(\0162<.google.cloud.websecurityscanner.v" - + "1alpha.Finding.FindingType\022\025\n\rfinding_co" - + "unt\030\002 \001(\005B\241\001\n+com.google.cloud.websecuri" - + "tyscanner.v1alphaB\025FindingTypeStatsProto" - + "P\001ZYgoogle.golang.org/genproto/googleapi" - + "s/cloud/websecurityscanner/v1alpha;webse" - + "curityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor, - new java.lang.String[] { - "FindingType", "FindingCount", - }); - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java deleted file mode 100644 index 271e5d3a..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface GetFindingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index d2ac4c67..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface GetScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java deleted file mode 100644 index aba0542a..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface GetScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index c7eede2a..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface ListFindingTypeStatsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java deleted file mode 100644 index 5a2ffbfd..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java +++ /dev/null @@ -1,89 +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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface ListFindingTypeStatsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - java.util.List - getFindingTypeStatsList(); - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index); - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - int getFindingTypeStatsCount(); - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - java.util.List - getFindingTypeStatsOrBuilderList(); - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java deleted file mode 100644 index 3a47353f..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java +++ /dev/null @@ -1,183 +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/cloud/websecurityscanner/v1alpha/scan_config.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class ScanConfigProto { - private ScanConfigProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/websecurityscanner/v1alph" - + "a/scan_config.proto\022\'google.cloud.websec" - + "urityscanner.v1alpha\032\037google/api/field_b" - + "ehavior.proto\032\031google/api/resource.proto" - + "\0326google/cloud/websecurityscanner/v1alph" - + "a/scan_run.proto\032\037google/protobuf/timest" - + "amp.proto\"\261\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031" - + "\n\014display_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001" - + "(\005\022\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Z\n\016authen" - + "tication\030\005 \001(\0132B.google.cloud.websecurit" - + "yscanner.v1alpha.ScanConfig.Authenticati" - + "on\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud.we" - + "bsecurityscanner.v1alpha.ScanConfig.User" - + "Agent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010sch" - + "edule\030\010 \001(\0132<.google.cloud.websecuritysc" - + "anner.v1alpha.ScanConfig.Schedule\022\\\n\020tar" - + "get_platforms\030\t \003(\0162B.google.cloud.webse" - + "curityscanner.v1alpha.ScanConfig.TargetP" - + "latform\022D\n\nlatest_run\030\013 \001(\01320.google.clo" - + "ud.websecurityscanner.v1alpha.ScanRun\032\226\003" - + "\n\016Authentication\022j\n\016google_account\030\001 \001(\013" - + "2P.google.cloud.websecurityscanner.v1alp" - + "ha.ScanConfig.Authentication.GoogleAccou" - + "ntH\000\022j\n\016custom_account\030\002 \001(\0132P.google.cl" - + "oud.websecurityscanner.v1alpha.ScanConfi" - + "g.Authentication.CustomAccountH\000\032@\n\rGoog" - + "leAccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010pass" - + "word\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010u" - + "sername\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A" - + "\002\340A\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenti" - + "cation\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022#\n\026interva" - + "l_duration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022" - + "\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LI" - + "NUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHO" - + "NE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFOR" - + "M_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPU" - + "TE\020\002:_\352A\\\n,websecurityscanner.googleapis" - + ".com/ScanConfig\022,projects/{project}/scan" - + "Configs/{scan_config}B\233\001\n+com.google.clo" - + "ud.websecurityscanner.v1alphaB\017ScanConfi" - + "gProtoP\001ZYgoogle.golang.org/genproto/goo" - + "gleapis/cloud/websecurityscanner/v1alpha" - + ";websecurityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "MaxQps", - "StartingUrls", - "Authentication", - "UserAgent", - "BlacklistPatterns", - "Schedule", - "TargetPlatforms", - "LatestRun", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor, - new java.lang.String[] { - "GoogleAccount", "CustomAccount", "Authentication", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor, - new java.lang.String[] { - "Username", "Password", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor, - new java.lang.String[] { - "Username", "Password", "LoginUrl", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor, - new java.lang.String[] { - "ScheduleTime", "IntervalDurationDays", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java deleted file mode 100644 index f4f750e5..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java +++ /dev/null @@ -1,103 +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/cloud/websecurityscanner/v1alpha/scan_run.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class ScanRunProto { - private ScanRunProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/websecurityscanner/v1alph" - + "a/scan_run.proto\022\'google.cloud.websecuri" - + "tyscanner.v1alpha\032\031google/api/resource.p" - + "roto\032\037google/protobuf/timestamp.proto\"\257\005" - + "\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022X\n\017execution_sta" - + "te\030\002 \001(\0162?.google.cloud.websecurityscann" - + "er.v1alpha.ScanRun.ExecutionState\022R\n\014res" - + "ult_state\030\003 \001(\0162<.google.cloud.websecuri" - + "tyscanner.v1alpha.ScanRun.ResultState\022.\n" - + "\nstart_time\030\004 \001(\0132\032.google.protobuf.Time" - + "stamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobu" - + "f.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003\022" - + "\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulner" - + "abilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001(" - + "\005\"Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_U" - + "NSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014" - + "\n\010FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_ST" - + "ATE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020" - + "\002\022\n\n\006KILLED\020\003:p\352Am\n)websecurityscanner.g" - + "oogleapis.com/ScanRun\022@projects/{project" - + "}/scanConfigs/{scan_config}/scanRuns/{sc" - + "an_run}B\230\001\n+com.google.cloud.websecurity" - + "scanner.v1alphaB\014ScanRunProtoP\001ZYgoogle." - + "golang.org/genproto/googleapis/cloud/web" - + "securityscanner/v1alpha;websecurityscann" - + "erb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor, - new java.lang.String[] { - "Name", - "ExecutionState", - "ResultState", - "StartTime", - "EndTime", - "UrlsCrawledCount", - "UrlsTestedCount", - "HasVulnerabilities", - "ProgressPercent", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java deleted file mode 100644 index f8a9dbe3..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface StartScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java deleted file mode 100644 index d74236cc..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface StopScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java deleted file mode 100644 index be5e10e7..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java +++ /dev/null @@ -1,440 +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/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class WebSecurityScannerProto { - private WebSecurityScannerProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/websecurityscanner/v1alph" - + "a/web_security_scanner.proto\022\'google.clo" - + "ud.websecurityscanner.v1alpha\032\034google/ap" - + "i/annotations.proto\032\027google/api/client.p" - + "roto\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\0329google/cloud/w" - + "ebsecurityscanner/v1alpha/crawled_url.pr" - + "oto\0325google/cloud/websecurityscanner/v1a" - + "lpha/finding.proto\032@google/cloud/websecu" - + "rityscanner/v1alpha/finding_type_stats.p" - + "roto\0329google/cloud/websecurityscanner/v1" - + "alpha/scan_config.proto\0326google/cloud/we" - + "bsecurityscanner/v1alpha/scan_run.proto\032" - + "\033google/protobuf/empty.proto\032 google/pro" - + "tobuf/field_mask.proto\"\255\001\n\027CreateScanCon" - + "figRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clou" - + "dresourcemanager.googleapis.com/Project\022" - + "M\n\013scan_config\030\002 \001(\01323.google.cloud.webs" - + "ecurityscanner.v1alpha.ScanConfigB\003\340A\002\"]" - + "\n\027DeleteScanConfigRequest\022B\n\004name\030\001 \001(\tB" - + "4\340A\002\372A.\n,websecurityscanner.googleapis.c" - + "om/ScanConfig\"Z\n\024GetScanConfigRequest\022B\n" - + "\004name\030\001 \001(\tB4\340A\002\372A.\n,websecurityscanner." - + "googleapis.com/ScanConfig\"\204\001\n\026ListScanCo" - + "nfigsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cl" - + "oudresourcemanager.googleapis.com/Projec" - + "t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" - + "\"\236\001\n\027UpdateScanConfigRequest\022M\n\013scan_con" - + "fig\030\002 \001(\01323.google.cloud.websecurityscan" - + "ner.v1alpha.ScanConfigB\003\340A\002\0224\n\013update_ma" - + "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"}\n\027ListScanConfigsResponse\022I\n\014scan_con" - + "figs\030\001 \003(\01323.google.cloud.websecuritysca" - + "nner.v1alpha.ScanConfig\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"Y\n\023StartScanRunRequest\022B\n\004name\030" - + "\001 \001(\tB4\340A\002\372A.\n,websecurityscanner.google" - + "apis.com/ScanConfig\"T\n\021GetScanRunRequest" - + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecurityscann" - + "er.googleapis.com/ScanRun\"\202\001\n\023ListScanRu" - + "nsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,webse" - + "curityscanner.googleapis.com/ScanConfig\022" - + "\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"t" - + "\n\024ListScanRunsResponse\022C\n\tscan_runs\030\001 \003(" - + "\01320.google.cloud.websecurityscanner.v1al" - + "pha.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022" - + "StopScanRunRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" - + "\n)websecurityscanner.googleapis.com/Scan" - + "Run\"\202\001\n\026ListCrawledUrlsRequest\022A\n\006parent" - + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" - + "eapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021\n" - + "\tpage_size\030\003 \001(\005\"}\n\027ListCrawledUrlsRespo" - + "nse\022I\n\014crawled_urls\030\001 \003(\01323.google.cloud" - + ".websecurityscanner.v1alpha.CrawledUrl\022\027" - + "\n\017next_page_token\030\002 \001(\t\"T\n\021GetFindingReq" - + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuritys" - + "canner.googleapis.com/Finding\"\224\001\n\023ListFi" - + "ndingsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)w" - + "ebsecurityscanner.googleapis.com/ScanRun" - + "\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(" - + "\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024ListFindingsResp" - + "onse\022B\n\010findings\030\001 \003(\01320.google.cloud.we" - + "bsecurityscanner.v1alpha.Finding\022\027\n\017next" - + "_page_token\030\002 \001(\t\"`\n\033ListFindingTypeStat" - + "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websec" - + "urityscanner.googleapis.com/ScanRun\"u\n\034L" - + "istFindingTypeStatsResponse\022U\n\022finding_t" - + "ype_stats\030\001 \003(\01329.google.cloud.websecuri" - + "tyscanner.v1alpha.FindingTypeStats2\264\026\n\022W" - + "ebSecurityScanner\022\335\001\n\020CreateScanConfig\022@" - + ".google.cloud.websecurityscanner.v1alpha" - + ".CreateScanConfigRequest\0323.google.cloud." - + "websecurityscanner.v1alpha.ScanConfig\"R\202" - + "\323\344\223\0027\"(/v1alpha/{parent=projects/*}/scan" - + "Configs:\013scan_config\332A\022parent,scan_confi" - + "g\022\245\001\n\020DeleteScanConfig\022@.google.cloud.we" - + "bsecurityscanner.v1alpha.DeleteScanConfi" - + "gRequest\032\026.google.protobuf.Empty\"7\202\323\344\223\002*" - + "*(/v1alpha/{name=projects/*/scanConfigs/" - + "*}\332A\004name\022\274\001\n\rGetScanConfig\022=.google.clo" - + "ud.websecurityscanner.v1alpha.GetScanCon" - + "figRequest\0323.google.cloud.websecuritysca" - + "nner.v1alpha.ScanConfig\"7\202\323\344\223\002*\022(/v1alph" - + "a/{name=projects/*/scanConfigs/*}\332A\004name" - + "\022\317\001\n\017ListScanConfigs\022?.google.cloud.webs" - + "ecurityscanner.v1alpha.ListScanConfigsRe" - + "quest\032@.google.cloud.websecurityscanner." - + "v1alpha.ListScanConfigsResponse\"9\202\323\344\223\002*\022" - + "(/v1alpha/{parent=projects/*}/scanConfig" - + "s\332A\006parent\022\356\001\n\020UpdateScanConfig\022@.google" - + ".cloud.websecurityscanner.v1alpha.Update" - + "ScanConfigRequest\0323.google.cloud.websecu" - + "rityscanner.v1alpha.ScanConfig\"c\202\323\344\223\002C24" - + "/v1alpha/{scan_config.name=projects/*/sc" - + "anConfigs/*}:\013scan_config\332A\027scan_config," - + "update_mask\022\300\001\n\014StartScanRun\022<.google.cl" - + "oud.websecurityscanner.v1alpha.StartScan" - + "RunRequest\0320.google.cloud.websecuritysca" - + "nner.v1alpha.ScanRun\"@\202\323\344\223\0023\"./v1alpha/{" - + "name=projects/*/scanConfigs/*}:start:\001*\332" - + "A\004name\022\276\001\n\nGetScanRun\022:.google.cloud.web" - + "securityscanner.v1alpha.GetScanRunReques" - + "t\0320.google.cloud.websecurityscanner.v1al" - + "pha.ScanRun\"B\202\323\344\223\0025\0223/v1alpha/{name=proj" - + "ects/*/scanConfigs/*/scanRuns/*}\332A\004name\022" - + "\321\001\n\014ListScanRuns\022<.google.cloud.websecur" - + "ityscanner.v1alpha.ListScanRunsRequest\032=" - + ".google.cloud.websecurityscanner.v1alpha" - + ".ListScanRunsResponse\"D\202\323\344\223\0025\0223/v1alpha/" - + "{parent=projects/*/scanConfigs/*}/scanRu" - + "ns\332A\006parent\022\310\001\n\013StopScanRun\022;.google.clo" - + "ud.websecurityscanner.v1alpha.StopScanRu" - + "nRequest\0320.google.cloud.websecurityscann" - + "er.v1alpha.ScanRun\"J\202\323\344\223\002=\"8/v1alpha/{na" - + "me=projects/*/scanConfigs/*/scanRuns/*}:" - + "stop:\001*\332A\004name\022\350\001\n\017ListCrawledUrls\022?.goo" - + "gle.cloud.websecurityscanner.v1alpha.Lis" - + "tCrawledUrlsRequest\032@.google.cloud.webse" - + "curityscanner.v1alpha.ListCrawledUrlsRes" - + "ponse\"R\202\323\344\223\002C\022A/v1alpha/{parent=projects" - + "/*/scanConfigs/*/scanRuns/*}/crawledUrls" - + "\332A\006parent\022\311\001\n\nGetFinding\022:.google.cloud." - + "websecurityscanner.v1alpha.GetFindingReq" - + "uest\0320.google.cloud.websecurityscanner.v" - + "1alpha.Finding\"M\202\323\344\223\002@\022>/v1alpha/{name=p" - + "rojects/*/scanConfigs/*/scanRuns/*/findi" - + "ngs/*}\332A\004name\022\343\001\n\014ListFindings\022<.google." - + "cloud.websecurityscanner.v1alpha.ListFin" - + "dingsRequest\032=.google.cloud.websecuritys" - + "canner.v1alpha.ListFindingsResponse\"V\202\323\344" - + "\223\002@\022>/v1alpha/{parent=projects/*/scanCon" - + "figs/*/scanRuns/*}/findings\332A\rparent,fil" - + "ter\022\374\001\n\024ListFindingTypeStats\022D.google.cl" - + "oud.websecurityscanner.v1alpha.ListFindi" - + "ngTypeStatsRequest\032E.google.cloud.websec" - + "urityscanner.v1alpha.ListFindingTypeStat" - + "sResponse\"W\202\323\344\223\002H\022F/v1alpha/{parent=proj" - + "ects/*/scanConfigs/*/scanRuns/*}/finding" - + "TypeStats\332A\006parent\032U\312A!websecurityscanne" - + "r.googleapis.com\322A.https://www.googleapi" - + "s.com/auth/cloud-platformB\243\001\n+com.google" - + ".cloud.websecurityscanner.v1alphaB\027WebSe" - + "curityScannerProtoP\001ZYgoogle.golang.org/" - + "genproto/googleapis/cloud/websecuritysca" - + "nner/v1alpha;websecurityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "ScanConfig", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor, - new java.lang.String[] { - "ScanConfig", "UpdateMask", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor, - new java.lang.String[] { - "ScanConfigs", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor, - new java.lang.String[] { - "ScanRuns", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor, - new java.lang.String[] { - "CrawledUrls", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor, - new java.lang.String[] { - "Findings", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor, - new java.lang.String[] { - "FindingTypeStats", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java deleted file mode 100644 index 038d2c8a..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java +++ /dev/null @@ -1,70 +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/cloud/websecurityscanner/v1beta/crawled_url.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class CrawledUrlProto { - private CrawledUrlProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/websecurityscanner/v1beta" - + "/crawled_url.proto\022&google.cloud.websecu" - + "rityscanner.v1beta\"<\n\nCrawledUrl\022\023\n\013http" - + "_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\t" - + "B\227\002\n*com.google.cloud.websecurityscanner" - + ".v1betaB\017CrawledUrlProtoP\001ZXgoogle.golan" - + "g.org/genproto/googleapis/cloud/websecur" - + "ityscanner/v1beta;websecurityscanner\252\002&G" - + "oogle.Cloud.WebSecurityScanner.V1Beta\312\002&" - + "Google\\Cloud\\WebSecurityScanner\\V1beta\352\002" - + ")Google::Cloud::WebSecurityScanner::V1be" - + "tab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor, - new java.lang.String[] { - "HttpMethod", "Url", "Body", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java deleted file mode 100644 index ec458d19..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,97 +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/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface CreateScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scanConfig field is set. - */ - boolean hasScanConfig(); - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scanConfig. - */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index 622e1053..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface DeleteScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java deleted file mode 100644 index fe2f22f0..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java +++ /dev/null @@ -1,155 +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/cloud/websecurityscanner/v1beta/finding_addon.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class FindingAddonProto { - private FindingAddonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1beta" - + "/finding_addon.proto\022&google.cloud.webse" - + "curityscanner.v1beta\"*\n\004Form\022\022\n\naction_u" - + "ri\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibr" - + "ary\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001" - + "(\t\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021Violating" - + "Resource\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resour" - + "ce_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017" - + "parameter_names\030\001 \003(\t\"\350\001\n\021VulnerableHead" - + "ers\022Q\n\007headers\030\001 \003(\0132@.google.cloud.webs" - + "ecurityscanner.v1beta.VulnerableHeaders." - + "Header\022Y\n\017missing_headers\030\002 \003(\0132@.google" - + ".cloud.websecurityscanner.v1beta.Vulnera" - + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" - + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\231\002\n*com.goo" - + "gle.cloud.websecurityscanner.v1betaB\021Fin" - + "dingAddonProtoP\001ZXgoogle.golang.org/genp" - + "roto/googleapis/cloud/websecurityscanner" - + "/v1beta;websecurityscanner\252\002&Google.Clou" - + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" - + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" - + "loud::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor, - new java.lang.String[] { - "ActionUri", "Fields", - }); - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor, - new java.lang.String[] { - "LibraryName", "Version", "LearnMoreUrls", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor, - new java.lang.String[] { - "ContentType", "ResourceUrl", - }); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor, - new java.lang.String[] { - "ParameterNames", - }); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor, - new java.lang.String[] { - "Headers", "MissingHeaders", - }); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor, - new java.lang.String[] { - "Name", "Value", - }); - internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor, - new java.lang.String[] { - "StackTraces", "ErrorMessage", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java deleted file mode 100644 index 84a2e452..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java +++ /dev/null @@ -1,116 +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/cloud/websecurityscanner/v1beta/finding.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class FindingProto { - private FindingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/websecurityscanner/v1beta" - + "/finding.proto\022&google.cloud.websecurity" - + "scanner.v1beta\032\031google/api/resource.prot" - + "o\032:google/cloud/websecurityscanner/v1bet" - + "a/finding_addon.proto\"\251\006\n\007Finding\022\014\n\004nam" - + "e\030\001 \001(\t\022\024\n\014finding_type\030\002 \001(\t\022\023\n\013http_me" - + "thod\030\003 \001(\t\022\022\n\nfuzzed_url\030\004 \001(\t\022\014\n\004body\030\005" - + " \001(\t\022\023\n\013description\030\006 \001(\t\022\030\n\020reproductio" - + "n_url\030\007 \001(\t\022\021\n\tframe_url\030\010 \001(\t\022\021\n\tfinal_" - + "url\030\t \001(\t\022\023\n\013tracking_id\030\n \001(\t\022:\n\004form\030\020" - + " \001(\0132,.google.cloud.websecurityscanner.v" - + "1beta.Form\022Q\n\020outdated_library\030\013 \001(\01327.g" - + "oogle.cloud.websecurityscanner.v1beta.Ou" - + "tdatedLibrary\022U\n\022violating_resource\030\014 \001(" - + "\01329.google.cloud.websecurityscanner.v1be" - + "ta.ViolatingResource\022U\n\022vulnerable_heade" - + "rs\030\017 \001(\01329.google.cloud.websecurityscann" - + "er.v1beta.VulnerableHeaders\022[\n\025vulnerabl" - + "e_parameters\030\r \001(\0132<.google.cloud.websec" - + "urityscanner.v1beta.VulnerableParameters" - + "\0228\n\003xss\030\016 \001(\0132+.google.cloud.websecurity" - + "scanner.v1beta.Xss:\204\001\352A\200\001\n)websecuritysc" - + "anner.googleapis.com/Finding\022Sprojects/{" - + "project}/scanConfigs/{scan_config}/scanR" - + "uns/{scan_run}/findings/{finding}B\224\002\n*co" - + "m.google.cloud.websecurityscanner.v1beta" - + "B\014FindingProtoP\001ZXgoogle.golang.org/genp" - + "roto/googleapis/cloud/websecurityscanner" - + "/v1beta;websecurityscanner\252\002&Google.Clou" - + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" - + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" - + "loud::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor, - new java.lang.String[] { - "Name", - "FindingType", - "HttpMethod", - "FuzzedUrl", - "Body", - "Description", - "ReproductionUrl", - "FrameUrl", - "FinalUrl", - "TrackingId", - "Form", - "OutdatedLibrary", - "ViolatingResource", - "VulnerableHeaders", - "VulnerableParameters", - "Xss", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java deleted file mode 100644 index 5b01de6c..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java +++ /dev/null @@ -1,70 +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/cloud/websecurityscanner/v1beta/finding_type_stats.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class FindingTypeStatsProto { - private FindingTypeStatsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1beta" - + "/finding_type_stats.proto\022&google.cloud." - + "websecurityscanner.v1beta\"?\n\020FindingType" - + "Stats\022\024\n\014finding_type\030\001 \001(\t\022\025\n\rfinding_c" - + "ount\030\002 \001(\005B\235\002\n*com.google.cloud.websecur" - + "ityscanner.v1betaB\025FindingTypeStatsProto" - + "P\001ZXgoogle.golang.org/genproto/googleapi" - + "s/cloud/websecurityscanner/v1beta;websec" - + "urityscanner\252\002&Google.Cloud.WebSecurityS" - + "canner.V1Beta\312\002&Google\\Cloud\\WebSecurity" - + "Scanner\\V1beta\352\002)Google::Cloud::WebSecur" - + "ityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor, - new java.lang.String[] { - "FindingType", "FindingCount", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java deleted file mode 100644 index a6d708c8..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.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/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface GetFindingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetFindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index 44926ab6..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface GetScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java deleted file mode 100644 index cc76d3b0..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.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/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface GetScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index 5057639f..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.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/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface ListFindingTypeStatsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java deleted file mode 100644 index a13075ef..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java +++ /dev/null @@ -1,106 +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/cloud/websecurityscanner/v1beta/scan_config_error.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanConfigErrorProto { - private ScanConfigErrorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable; - - 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/cloud/websecurityscanner/v1beta" - + "/scan_config_error.proto\022&google.cloud.w" - + "ebsecurityscanner.v1beta\"\355\013\n\017ScanConfigE" - + "rror\022J\n\004code\030\001 \001(\0162<.google.cloud.websec" - + "urityscanner.v1beta.ScanConfigError.Code" - + "\022\022\n\nfield_name\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UN" - + "SPECIFIED\020\000\022\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022" - + "\037\n\033APPENGINE_API_BACKEND_ERROR\020\002\022 \n\034APPE" - + "NGINE_API_NOT_ACCESSIBLE\020\003\022\"\n\036APPENGINE_" - + "DEFAULT_HOST_MISSING\020\004\022!\n\035CANNOT_USE_GOO" - + "GLE_COM_ACCOUNT\020\006\022\034\n\030CANNOT_USE_OWNER_AC" - + "COUNT\020\007\022\035\n\031COMPUTE_API_BACKEND_ERROR\020\010\022\036" - + "\n\032COMPUTE_API_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM" - + "_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PR" - + "OJECT\020\n\022\036\n\032CUSTOM_LOGIN_URL_MALFORMED\020\013\022" - + "3\n/CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTAB" - + "LE_ADDRESS\020\014\0221\n-CUSTOM_LOGIN_URL_MAPPED_" - + "TO_UNRESERVED_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_" - + "URL_HAS_NON_ROUTABLE_IP_ADDRESS\020\016\022.\n*CUS" - + "TOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS\020" - + "\017\022\027\n\023DUPLICATE_SCAN_NAME\020\020\022\027\n\023INVALID_FI" - + "ELD_VALUE\020\022\022$\n FAILED_TO_AUTHENTICATE_TO" - + "_TARGET\020\023\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\024\022" - + "\035\n\031FORBIDDEN_TO_SCAN_COMPUTE\020\025\022$\n FORBID" - + "DEN_UPDATE_TO_MANAGED_SCAN\020+\022\024\n\020MALFORME" - + "D_FILTER\020\026\022\033\n\027MALFORMED_RESOURCE_NAME\020\027\022" - + "\024\n\020PROJECT_INACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020" - + "\031\022\036\n\032RESOURCE_NAME_INCONSISTENT\020\032\022\030\n\024SCA" - + "N_ALREADY_RUNNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020" - + "\034\022/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT" - + "_PROJECT\020\035\022\026\n\022SEED_URL_MALFORMED\020\036\022+\n\'SE" - + "ED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\037\022" - + ")\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS" - + "\020 \022(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRE" - + "SS\020!\022&\n\"SEED_URL_HAS_UNRESERVED_IP_ADDRE" - + "SS\020#\022\"\n\036SERVICE_ACCOUNT_NOT_CONFIGURED\020$" - + "\022\022\n\016TOO_MANY_SCANS\020%\022\"\n\036UNABLE_TO_RESOLV" - + "E_PROJECT_INFO\020&\022(\n$UNSUPPORTED_BLACKLIS" - + "T_PATTERN_FORMAT\020\'\022\026\n\022UNSUPPORTED_FILTER" - + "\020(\022\034\n\030UNSUPPORTED_FINDING_TYPE\020)\022\032\n\026UNSU" - + "PPORTED_URL_SCHEME\020*\032\002\020\001B\234\002\n*com.google." - + "cloud.websecurityscanner.v1betaB\024ScanCon" - + "figErrorProtoP\001ZXgoogle.golang.org/genpr" - + "oto/googleapis/cloud/websecurityscanner/" - + "v1beta;websecurityscanner\252\002&Google.Cloud" - + ".WebSecurityScanner.V1Beta\312\002&Google\\Clou" - + "d\\WebSecurityScanner\\V1beta\352\002)Google::Cl" - + "oud::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor, - new java.lang.String[] { - "Code", "FieldName", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java deleted file mode 100644 index f60d9ba1..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java +++ /dev/null @@ -1,198 +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/cloud/websecurityscanner/v1beta/scan_config.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanConfigProto { - private ScanConfigProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/websecurityscanner/v1beta" - + "/scan_config.proto\022&google.cloud.websecu" - + "rityscanner.v1beta\032\037google/api/field_beh" - + "avior.proto\032\031google/api/resource.proto\0325" - + "google/cloud/websecurityscanner/v1beta/s" - + "can_run.proto\032\037google/protobuf/timestamp" - + ".proto\"\246\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031\n\014d" - + "isplay_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001(\005\022" - + "\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Y\n\016authentic" - + "ation\030\005 \001(\0132A.google.cloud.websecuritysc" - + "anner.v1beta.ScanConfig.Authentication\022P" - + "\n\nuser_agent\030\006 \001(\0162<.google.cloud.websec" - + "urityscanner.v1beta.ScanConfig.UserAgent" - + "\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedule" - + "\030\010 \001(\0132;.google.cloud.websecurityscanner" - + ".v1beta.ScanConfig.Schedule\022[\n\020target_pl" - + "atforms\030\t \003(\0162A.google.cloud.websecurity" - + "scanner.v1beta.ScanConfig.TargetPlatform" - + "\022{\n!export_to_security_command_center\030\n " - + "\001(\0162P.google.cloud.websecurityscanner.v1" - + "beta.ScanConfig.ExportToSecurityCommandC" - + "enter\022C\n\nlatest_run\030\013 \001(\0132/.google.cloud" - + ".websecurityscanner.v1beta.ScanRun\022P\n\nri" - + "sk_level\030\014 \001(\0162<.google.cloud.websecurit" - + "yscanner.v1beta.ScanConfig.RiskLevel\032\224\003\n" - + "\016Authentication\022i\n\016google_account\030\001 \001(\0132" - + "O.google.cloud.websecurityscanner.v1beta" - + ".ScanConfig.Authentication.GoogleAccount" - + "H\000\022i\n\016custom_account\030\002 \001(\0132O.google.clou" - + "d.websecurityscanner.v1beta.ScanConfig.A" - + "uthentication.CustomAccountH\000\032@\n\rGoogleA" - + "ccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010passwor" - + "d\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010user" - + "name\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A\002\340A" - + "\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenticat" - + "ion\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032" - + ".google.protobuf.Timestamp\022#\n\026interval_d" - + "uration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022\032\n\026" - + "USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX" - + "\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020" - + "\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFORM_U" - + "NSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPUTE\020" - + "\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED" - + "\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecur" - + "ityCommandCenter\0221\n-EXPORT_TO_SECURITY_C" - + "OMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001" - + "\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscanner." - + "googleapis.com/ScanConfig\022,projects/{pro" - + "ject}/scanConfigs/{scan_config}B\227\002\n*com." - + "google.cloud.websecurityscanner.v1betaB\017" - + "ScanConfigProtoP\001ZXgoogle.golang.org/gen" - + "proto/googleapis/cloud/websecurityscanne" - + "r/v1beta;websecurityscanner\252\002&Google.Clo" - + "ud.WebSecurityScanner.V1Beta\312\002&Google\\Cl" - + "oud\\WebSecurityScanner\\V1beta\352\002)Google::" - + "Cloud::WebSecurityScanner::V1betab\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "MaxQps", - "StartingUrls", - "Authentication", - "UserAgent", - "BlacklistPatterns", - "Schedule", - "TargetPlatforms", - "ExportToSecurityCommandCenter", - "LatestRun", - "RiskLevel", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor, - new java.lang.String[] { - "GoogleAccount", "CustomAccount", "Authentication", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor, - new java.lang.String[] { - "Username", "Password", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor, - new java.lang.String[] { - "Username", "Password", "LoginUrl", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor, - new java.lang.String[] { - "ScheduleTime", "IntervalDurationDays", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java deleted file mode 100644 index 465dba63..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java +++ /dev/null @@ -1,84 +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/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanRunErrorTraceProto { - private ScanRunErrorTraceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/websecurityscanner/v1beta" - + "/scan_run_error_trace.proto\022&google.clou" - + "d.websecurityscanner.v1beta\032>google/clou" - + "d/websecurityscanner/v1beta/scan_config_" - + "error.proto\"\225\003\n\021ScanRunErrorTrace\022L\n\004cod" - + "e\030\001 \001(\0162>.google.cloud.websecurityscanne" - + "r.v1beta.ScanRunErrorTrace.Code\022R\n\021scan_" - + "config_error\030\002 \001(\01327.google.cloud.websec" - + "urityscanner.v1beta.ScanConfigError\022#\n\033m" - + "ost_common_http_error_code\030\003 \001(\005\"\270\001\n\004Cod" - + "e\022\024\n\020CODE_UNSPECIFIED\020\000\022\022\n\016INTERNAL_ERRO" - + "R\020\001\022\025\n\021SCAN_CONFIG_ISSUE\020\002\022\037\n\033AUTHENTICA" - + "TION_CONFIG_ISSUE\020\003\022\034\n\030TIMED_OUT_WHILE_S" - + "CANNING\020\004\022\026\n\022TOO_MANY_REDIRECTS\020\005\022\030\n\024TOO" - + "_MANY_HTTP_ERRORS\020\006B\236\002\n*com.google.cloud" - + ".websecurityscanner.v1betaB\026ScanRunError" - + "TraceProtoP\001ZXgoogle.golang.org/genproto" - + "/googleapis/cloud/websecurityscanner/v1b" - + "eta;websecurityscanner\252\002&Google.Cloud.We" - + "bSecurityScanner.V1Beta\312\002&Google\\Cloud\\W" - + "ebSecurityScanner\\V1beta\352\002)Google::Cloud" - + "::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor, - new java.lang.String[] { - "Code", "ScanConfigError", "MostCommonHttpErrorCode", - }); - com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java deleted file mode 100644 index fa953044..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java +++ /dev/null @@ -1,119 +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/cloud/websecurityscanner/v1beta/scan_run.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanRunProto { - private ScanRunProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/websecurityscanner/v1beta" - + "/scan_run.proto\022&google.cloud.websecurit" - + "yscanner.v1beta\032\031google/api/resource.pro" - + "to\032Agoogle/cloud/websecurityscanner/v1be" - + "ta/scan_run_error_trace.proto\032Cgoogle/cl" - + "oud/websecurityscanner/v1beta/scan_run_w" - + "arning_trace.proto\032\037google/protobuf/time" - + "stamp.proto\"\322\006\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022W\n" - + "\017execution_state\030\002 \001(\0162>.google.cloud.we" - + "bsecurityscanner.v1beta.ScanRun.Executio" - + "nState\022Q\n\014result_state\030\003 \001(\0162;.google.cl" - + "oud.websecurityscanner.v1beta.ScanRun.Re" - + "sultState\022.\n\nstart_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\032\n\022urls_crawled_" - + "count\030\006 \001(\003\022\031\n\021urls_tested_count\030\007 \001(\003\022\033" - + "\n\023has_vulnerabilities\030\010 \001(\010\022\030\n\020progress_" - + "percent\030\t \001(\005\022N\n\013error_trace\030\n \001(\01329.goo" - + "gle.cloud.websecurityscanner.v1beta.Scan" - + "RunErrorTrace\022S\n\016warning_traces\030\013 \003(\0132;." - + "google.cloud.websecurityscanner.v1beta.S" - + "canRunWarningTrace\"Y\n\016ExecutionState\022\037\n\033" - + "EXECUTION_STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020" - + "\001\022\014\n\010SCANNING\020\002\022\014\n\010FINISHED\020\003\"O\n\013ResultS" - + "tate\022\034\n\030RESULT_STATE_UNSPECIFIED\020\000\022\013\n\007SU" - + "CCESS\020\001\022\t\n\005ERROR\020\002\022\n\n\006KILLED\020\003:p\352Am\n)web" - + "securityscanner.googleapis.com/ScanRun\022@" - + "projects/{project}/scanConfigs/{scan_con" - + "fig}/scanRuns/{scan_run}B\224\002\n*com.google." - + "cloud.websecurityscanner.v1betaB\014ScanRun" - + "ProtoP\001ZXgoogle.golang.org/genproto/goog" - + "leapis/cloud/websecurityscanner/v1beta;w" - + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" - + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" - + "urityScanner\\V1beta\352\002)Google::Cloud::Web" - + "SecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor, - new java.lang.String[] { - "Name", - "ExecutionState", - "ResultState", - "StartTime", - "EndTime", - "UrlsCrawledCount", - "UrlsTestedCount", - "HasVulnerabilities", - "ProgressPercent", - "ErrorTrace", - "WarningTraces", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java deleted file mode 100644 index 49dc296e..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java +++ /dev/null @@ -1,75 +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/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanRunWarningTraceProto { - private ScanRunWarningTraceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nCgoogle/cloud/websecurityscanner/v1beta" - + "/scan_run_warning_trace.proto\022&google.cl" - + "oud.websecurityscanner.v1beta\"\355\001\n\023ScanRu" - + "nWarningTrace\022N\n\004code\030\001 \001(\0162@.google.clo" - + "ud.websecurityscanner.v1beta.ScanRunWarn" - + "ingTrace.Code\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFI" - + "ED\020\000\022\036\n\032INSUFFICIENT_CRAWL_RESULTS\020\001\022\032\n\026" - + "TOO_MANY_CRAWL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZ" - + "Z_TASKS\020\003\022\022\n\016BLOCKED_BY_IAP\020\004B\240\002\n*com.go" - + "ogle.cloud.websecurityscanner.v1betaB\030Sc" - + "anRunWarningTraceProtoP\001ZXgoogle.golang." - + "org/genproto/googleapis/cloud/websecurit" - + "yscanner/v1beta;websecurityscanner\252\002&Goo" - + "gle.Cloud.WebSecurityScanner.V1Beta\312\002&Go" - + "ogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)G" - + "oogle::Cloud::WebSecurityScanner::V1beta" - + "b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor, - new java.lang.String[] { - "Code", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java deleted file mode 100644 index 3614cb38..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface StartScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java deleted file mode 100644 index dbcf22f6..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.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/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface StopScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java deleted file mode 100644 index 605c7398..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java +++ /dev/null @@ -1,442 +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/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class WebSecurityScannerProto { - private WebSecurityScannerProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/websecurityscanner/v1beta" - + "/web_security_scanner.proto\022&google.clou" - + "d.websecurityscanner.v1beta\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\0328google/cloud/web" - + "securityscanner/v1beta/crawled_url.proto" - + "\0324google/cloud/websecurityscanner/v1beta" - + "/finding.proto\032?google/cloud/websecurity" - + "scanner/v1beta/finding_type_stats.proto\032" - + "8google/cloud/websecurityscanner/v1beta/" - + "scan_config.proto\0325google/cloud/websecur" - + "ityscanner/v1beta/scan_run.proto\032\033google" - + "/protobuf/empty.proto\032 google/protobuf/f" - + "ield_mask.proto\"\254\001\n\027CreateScanConfigRequ" - + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" - + "cemanager.googleapis.com/Project\022L\n\013scan" - + "_config\030\002 \001(\01322.google.cloud.websecurity" - + "scanner.v1beta.ScanConfigB\003\340A\002\"]\n\027Delete" - + "ScanConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n" - + ",websecurityscanner.googleapis.com/ScanC" - + "onfig\"Z\n\024GetScanConfigRequest\022B\n\004name\030\001 " - + "\001(\tB4\340A\002\372A.\n,websecurityscanner.googleap" - + "is.com/ScanConfig\"\204\001\n\026ListScanConfigsReq" - + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" - + "rcemanager.googleapis.com/Project\022\022\n\npag" - + "e_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\235\001\n\027Upd" - + "ateScanConfigRequest\022L\n\013scan_config\030\002 \001(" - + "\01322.google.cloud.websecurityscanner.v1be" - + "ta.ScanConfigB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\027List" - + "ScanConfigsResponse\022H\n\014scan_configs\030\001 \003(" - + "\01322.google.cloud.websecurityscanner.v1be" - + "ta.ScanConfig\022\027\n\017next_page_token\030\002 \001(\t\"Y" - + "\n\023StartScanRunRequest\022B\n\004name\030\001 \001(\tB4\340A\002" - + "\372A.\n,websecurityscanner.googleapis.com/S" - + "canConfig\"T\n\021GetScanRunRequest\022?\n\004name\030\001" - + " \001(\tB1\340A\002\372A+\n)websecurityscanner.googlea" - + "pis.com/ScanRun\"\202\001\n\023ListScanRunsRequest\022" - + "D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,websecurityscan" - + "ner.googleapis.com/ScanConfig\022\022\n\npage_to" - + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"s\n\024ListScan" - + "RunsResponse\022B\n\tscan_runs\030\001 \003(\0132/.google" - + ".cloud.websecurityscanner.v1beta.ScanRun" - + "\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022StopScanRun" - + "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuri" - + "tyscanner.googleapis.com/ScanRun\"\202\001\n\026Lis" - + "tCrawledUrlsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002" - + "\372A+\n)websecurityscanner.googleapis.com/S" - + "canRun\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" - + "\003 \001(\005\"|\n\027ListCrawledUrlsResponse\022H\n\014craw" - + "led_urls\030\001 \003(\01322.google.cloud.websecurit" - + "yscanner.v1beta.CrawledUrl\022\027\n\017next_page_" - + "token\030\002 \001(\t\"T\n\021GetFindingRequest\022?\n\004name" - + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" - + "eapis.com/Finding\"\224\001\n\023ListFindingsReques" - + "t\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websecuritysc" - + "anner.googleapis.com/ScanRun\022\023\n\006filter\030\002" - + " \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_si" - + "ze\030\004 \001(\005\"r\n\024ListFindingsResponse\022A\n\010find" - + "ings\030\001 \003(\0132/.google.cloud.websecuritysca" - + "nner.v1beta.Finding\022\027\n\017next_page_token\030\002" - + " \001(\t\"`\n\033ListFindingTypeStatsRequest\022A\n\006p" - + "arent\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner." - + "googleapis.com/ScanRun\"t\n\034ListFindingTyp" - + "eStatsResponse\022T\n\022finding_type_stats\030\001 \003" - + "(\01328.google.cloud.websecurityscanner.v1b" - + "eta.FindingTypeStats2\216\026\n\022WebSecurityScan" - + "ner\022\332\001\n\020CreateScanConfig\022?.google.cloud." - + "websecurityscanner.v1beta.CreateScanConf" - + "igRequest\0322.google.cloud.websecurityscan" - + "ner.v1beta.ScanConfig\"Q\202\323\344\223\0026\"\'/v1beta/{" - + "parent=projects/*}/scanConfigs:\013scan_con" - + "fig\332A\022parent,scan_config\022\243\001\n\020DeleteScanC" - + "onfig\022?.google.cloud.websecurityscanner." - + "v1beta.DeleteScanConfigRequest\032\026.google." - + "protobuf.Empty\"6\202\323\344\223\002)*\'/v1beta/{name=pr" - + "ojects/*/scanConfigs/*}\332A\004name\022\271\001\n\rGetSc" - + "anConfig\022<.google.cloud.websecurityscann" - + "er.v1beta.GetScanConfigRequest\0322.google." - + "cloud.websecurityscanner.v1beta.ScanConf" - + "ig\"6\202\323\344\223\002)\022\'/v1beta/{name=projects/*/sca" - + "nConfigs/*}\332A\004name\022\314\001\n\017ListScanConfigs\022>" - + ".google.cloud.websecurityscanner.v1beta." - + "ListScanConfigsRequest\032?.google.cloud.we" - + "bsecurityscanner.v1beta.ListScanConfigsR" - + "esponse\"8\202\323\344\223\002)\022\'/v1beta/{parent=project" - + "s/*}/scanConfigs\332A\006parent\022\353\001\n\020UpdateScan" - + "Config\022?.google.cloud.websecurityscanner" - + ".v1beta.UpdateScanConfigRequest\0322.google" - + ".cloud.websecurityscanner.v1beta.ScanCon" - + "fig\"b\202\323\344\223\002B23/v1beta/{scan_config.name=p" - + "rojects/*/scanConfigs/*}:\013scan_config\332A\027" - + "scan_config,update_mask\022\275\001\n\014StartScanRun" - + "\022;.google.cloud.websecurityscanner.v1bet" - + "a.StartScanRunRequest\032/.google.cloud.web" - + "securityscanner.v1beta.ScanRun\"?\202\323\344\223\0022\"-" - + "/v1beta/{name=projects/*/scanConfigs/*}:" - + "start:\001*\332A\004name\022\273\001\n\nGetScanRun\0229.google." - + "cloud.websecurityscanner.v1beta.GetScanR" - + "unRequest\032/.google.cloud.websecurityscan" - + "ner.v1beta.ScanRun\"A\202\323\344\223\0024\0222/v1beta/{nam" - + "e=projects/*/scanConfigs/*/scanRuns/*}\332A" - + "\004name\022\316\001\n\014ListScanRuns\022;.google.cloud.we" - + "bsecurityscanner.v1beta.ListScanRunsRequ" - + "est\032<.google.cloud.websecurityscanner.v1" - + "beta.ListScanRunsResponse\"C\202\323\344\223\0024\0222/v1be" - + "ta/{parent=projects/*/scanConfigs/*}/sca" - + "nRuns\332A\006parent\022\305\001\n\013StopScanRun\022:.google." - + "cloud.websecurityscanner.v1beta.StopScan" - + "RunRequest\032/.google.cloud.websecuritysca" - + "nner.v1beta.ScanRun\"I\202\323\344\223\002<\"7/v1beta/{na" - + "me=projects/*/scanConfigs/*/scanRuns/*}:" - + "stop:\001*\332A\004name\022\345\001\n\017ListCrawledUrls\022>.goo" - + "gle.cloud.websecurityscanner.v1beta.List" - + "CrawledUrlsRequest\032?.google.cloud.websec" - + "urityscanner.v1beta.ListCrawledUrlsRespo" - + "nse\"Q\202\323\344\223\002B\022@/v1beta/{parent=projects/*/" - + "scanConfigs/*/scanRuns/*}/crawledUrls\332A\006" - + "parent\022\306\001\n\nGetFinding\0229.google.cloud.web" - + "securityscanner.v1beta.GetFindingRequest" - + "\032/.google.cloud.websecurityscanner.v1bet" - + "a.Finding\"L\202\323\344\223\002?\022=/v1beta/{name=project" - + "s/*/scanConfigs/*/scanRuns/*/findings/*}" - + "\332A\004name\022\340\001\n\014ListFindings\022;.google.cloud." - + "websecurityscanner.v1beta.ListFindingsRe" - + "quest\032<.google.cloud.websecurityscanner." - + "v1beta.ListFindingsResponse\"U\202\323\344\223\002?\022=/v1" - + "beta/{parent=projects/*/scanConfigs/*/sc" - + "anRuns/*}/findings\332A\rparent,filter\022\371\001\n\024L" - + "istFindingTypeStats\022C.google.cloud.webse" - + "curityscanner.v1beta.ListFindingTypeStat" - + "sRequest\032D.google.cloud.websecurityscann" - + "er.v1beta.ListFindingTypeStatsResponse\"V" - + "\202\323\344\223\002G\022E/v1beta/{parent=projects/*/scanC" - + "onfigs/*/scanRuns/*}/findingTypeStats\332A\006" - + "parent\032U\312A!websecurityscanner.googleapis" - + ".com\322A.https://www.googleapis.com/auth/c" - + "loud-platformB\237\002\n*com.google.cloud.webse" - + "curityscanner.v1betaB\027WebSecurityScanner" - + "ProtoP\001ZXgoogle.golang.org/genproto/goog" - + "leapis/cloud/websecurityscanner/v1beta;w" - + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" - + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" - + "urityScanner\\V1beta\352\002)Google::Cloud::Web" - + "SecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "ScanConfig", - }); - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor, - new java.lang.String[] { - "ScanConfig", "UpdateMask", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor, - new java.lang.String[] { - "ScanConfigs", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor, - new java.lang.String[] { - "ScanRuns", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor, - new java.lang.String[] { - "CrawledUrls", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor, - new java.lang.String[] { - "Findings", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor, - new java.lang.String[] { - "FindingTypeStats", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}